Novo SGA websocket events server writted in PHP compatible since v2.0.
register client
Panel Client register.
(No event data)
register user [user-only]
User Client register
Event data for User
:
{
"unity": integer,
"secret": string
}
Event data for Panel
:
{
"unity": integer,
"services": array
}
new ticket
User Client on triagem or redirecting on attendance
Event data:
{
"unity": integer
}
change ticket [user-only]
User Client on monitor emitted when cancel or transfer ticket
Event data:
{
"unity": integer
}
call ticket [user-only]
User Client on attendance
Event data:
{
"unity": integer,
"service": integer,
"hash": string
}
client update
Client info update
Event data for User
:
{
"unity": int
}
Event data for Panel
:
{
"unity": integer,
"services": array
}
register ok
(No event data)
update queue [user-only]
Emmited when: new ticket
, change ticket
, call ticket
.
(No event data)
call ticket [panel-only]
Emmited when: call ticket
.
Event data for Panel:
{
"unity": integer,
"service": integer,
hash: string
}