Unite Server Event list: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ = Gideros Unite Framework = == Server Event list == === Device Event === '''Event name''' device '''Description''' Events spawned after calling getDevices method..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__TOC__
 
= Gideros Unite Framework =
= Gideros Unite Framework =
== Server Event list ==
== Server Event list ==
Line 38: Line 37:




 
{{Unite Framework}}
'''[[Gideros Unite Framework]]'''
{{GIDEROS IMPORTANT LINKS}}

Latest revision as of 07:54, 26 August 2024

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)