Difference between revisions of "Unite Server Event list"

From GiderosMobile
(Created page with "__NOTOC__ = Gideros Unite Framework = == Server Event list == === Device Event === '''Event name''' device '''Description''' Events spawned after calling getDevices method...")
 
Line 36: Line 36:
 
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

Server 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 input

serverlink:addEventListener("device", function(e)
	print(e.data.id)
	print(e.data.ip)
	print(e.data.host)
end)

Client closed connection Event

Event name onClientClose

Description Event called when one of the clients is unreachable

Event properties

  • e.data.id - id of client

Example input

serverlink:addEventListener("onClientClose", function(e)
	print(e.data.id)
end)


Unite Server Method list

Unite Server Event list

Unite Client Method list

Unite Client Event list


Gideros Unite Framework