Skip to content

[DEPRECATED] Servidor WebSocket de eventos do sistema NovoSGA

Notifications You must be signed in to change notification settings

novosga/websocket-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websocket server

Novo SGA websocket events server writted in PHP compatible since v2.0.

Events

Client-to-server

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
}

Server-to-client

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
}

About

[DEPRECATED] Servidor WebSocket de eventos do sistema NovoSGA

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages