Register a listener on a all packet types
ToClient or ToServer
The callback
Register a listener on a specific packet type by header ID
ToClient or ToServer
The packet header ID
The callback
Register a listener on a specific packet type by name or hash
ToClient or ToServer
The packet name or hash
The callback
Listen for an event
Valid events: init, click, start, end, connect
Do on event
Rest
...args: any[]Listen for extension initialization
Extension initialized
Do on initialization
Listen for click on button in G-Earth Extensions tab
G-Earth button clicked
Do on click
Listen for the connection to start
Connection started
Do on connection start
Listen for the connection to end
Connection ended
Do on connection end
Listen for a connection
Connection made
Do on connection made (passes parameters host, connectionPort, hotelVersion, clientIdentifier, clientType)
Listen for the socket connection to drop
Socket connection ended
Do on socket connection end
Listen for updates on host info
Host info updated
Do on host info update
Requests the flags which have been given to G-Earth when it got executed For example, you might want this extension to do a specific thing if the flag "-e" was given
callback
if the request was successful, will return false if another flag request is busy
Send a message to the client
packet to be sent
success or failure
Send a message to the server
packet to be sent
success or failure
Generated using TypeDoc
Get the CURRENT host info (use the hostinfoupdate listener to always have the host info up to date)