Difference between revisions of "Unite Client Event list"
From GiderosMobile
(Created page with "__NOTOC__ = Gideros Unite Framework = == Client Event list == === Device Event === '''Event name''' device '''Description''' Events spawned after calling getDevices method...") |
|||
Line 60: | Line 60: | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | {|- | ||
+ | |style="width: 50%;"| | ||
+ | :::::::::::: | ||
+ | '''[[Unite Server Method list]]''' | ||
+ | |||
+ | |style="width: 50%;"| | ||
+ | :::::::::::: | ||
+ | '''[[Unite Server Event list]]''' | ||
+ | |} | ||
+ | |||
+ | {|- | ||
+ | |style="width: 50%;"| | ||
+ | :::::::::::: | ||
+ | '''[[Unite Client Method list]]''' | ||
+ | |||
+ | |style="width: 50%;"| | ||
+ | :::::::::::: | ||
+ | '''[[Unite Client Event list]]''' | ||
+ | |} | ||
Revision as of 06:33, 14 December 2023
Gideros Unite Framework
Client Event list
Device Event
Event name device
Description Events spawned after calling getDevices method
Event properties
- e.data.id - id of client
- e.data.ip - ip address of client
- e.data.host - username or hostname of client or ip if no hostname provided
Example
serverlink:addEventListener("device", function(e)
print(e.data.id)
print(e.data.ip)
print(e.data.host)
end)
Accept Event
Event name onAccepted
Description Event called when server accepted connection from this client
Example
serverlink:addEventListener("onAccepted", function(e)
print("connection accepted")
end)
Server closed Event
Event name onServerClose
Description Event called when server is unreachable
Example
serverlink:addEventListener("onServerClose", function(e)
print("server closed connection")
end)
Another Client closed Event
Event name onClientClose
Description Event called when another client connected to the same server becomes unreachable
Event properties
- e.data.id - id of client that disconnects
Example
serverlink:addEventListener("onClientClose", function(e)
print("client "..e.data.id.." closed connection")
end)
|
|
|
|