|  Developer
Updated on November 22, 2021

get_gateway()

  • Get a gateway registered for a plugin the current script belongs to.
Edit
  • params: none.
  • return: a gateway (table) or nil in a case of an error.
Edit
				
					require "core"

local gateway = core.get_gateway()
if gateway == nil then
    print("fail to get a gateway")
end