Novo SGA websocket events server writted in PHP compatible since v2.0., (*1)
register client, (*2)
Panel Client register., (*3)
(No event data), (*4)
register user [user-only], (*5)
User Client register, (*6)
Event data for User
:, (*7)
{ "unity": integer, "secret": string }
Event data for Panel
:, (*8)
{ "unity": integer, "services": array }
new ticket, (*9)
User Client on triagem or redirecting on attendance, (*10)
Event data:, (*11)
{ "unity": integer }
change ticket [user-only], (*12)
User Client on monitor emitted when cancel or transfer ticket, (*13)
Event data:, (*14)
{ "unity": integer }
call ticket [user-only], (*15)
User Client on attendance, (*16)
Event data:, (*17)
{ "unity": integer, "service": integer, "hash": string }
client update, (*18)
Client info update, (*19)
Event data for User
:, (*20)
{ "unity": int }
Event data for Panel
:, (*21)
{ "unity": integer, "services": array }
register ok, (*22)
(No event data), (*23)
update queue [user-only], (*24)
Emmited when: new ticket
, change ticket
, call ticket
., (*25)
(No event data), (*26)
call ticket [panel-only], (*27)
Emmited when: call ticket
., (*28)
Event data for Panel:, (*29)
{ "unity": integer, "service": integer, hash: string }