2017 © Pedro Peláez
 

library websocket-server

image

novosga/websocket-server

  • Tuesday, December 19, 2017
  • by rogeriolino
  • Repository
  • 2 Watchers
  • 2 Stars
  • 2,278 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 26 % Grown

The README.md

Websocket server

Novo SGA websocket events server writted in PHP compatible since v2.0., (*1)

Events

Client-to-server

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
}

Server-to-client

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
}

The Versions

19/12 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

19/12 2017

v2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires