-
Notifications
You must be signed in to change notification settings - Fork 3
Sockets
This pages does not reflect the current implementation of the sockets. It only list the future events which will be supported.
This sections list all the server's namespaces and the list of events they handle. It is subject to changes without notice.
Namespaces with the CC indication require the client to be whitelisted and have the canControl field set to true to be granted access. Namespaces with the MV indication have an authentication process which may vary according to the session's settings.
-
CC
/ctrl: Namespace which allows for the control of the session. It gets notified of submission events from the/folonamespace. It is also informed of any client connection/disconnection from any namespaces, including itself.
The/ctrlnamespace handle the following events:-
Server:
asq:gotoasq:gotosubasq:terminate
-
Client:
asq:gotoasq:gotosubasq:terminatedasq:submittedasq:ctrl-connectedasq:folo-connectedasq:wtap-connectedasq:stat-connectedasq:ctrl-disconnectedasq:folo-disconnected
asq:wtap-disconnectedasq:stat-disconnected
-
Server:
-
MV
/folo: Gets updated with the current status (position) of the session. It also handle user submissions from the questions asked during the session. It is informed of any connection/disconnection to the '/ctrl' namespace and to itself. The number of clients to this namespace represent the number of viewers in the session.
The/folonamespace handle the following events:-
Server:
asq:submit
-
Client:
asq:gotoasq:gotosubasq:terminatedasq:ctrl-connectedasq:folo-connectedasq:ctrl-disconnectedasq:folo-disconnected
-
Server:
-
CC
/wtap: Similar to/foloexcept that it does not allow for user submissions and it is not notified of connections/disconnections to its own namespace. (But it does for connections/disconnections from the '/ctrl' &'/folo' namespaces.) It is also not included in the number of viewers of a session.
The '/wtap' namespace handle the following events:-
Server:
- none
-
Client:
asq:gotoasq:gotosubasq:terminatedasq:ctrl-connectedasq:folo-connectedasq:ctrl-disconnectedasq:folo-disconnected
-
Server:
-
CC
/stat: Get's updated with the current status (position) of the session. This namespace receives the live updates of the statistics of the namespace. This includes the number of users (from '/folo'), answer to questions, etc...
The '/ctrl' namespace handle the following events:-
Server:
- none
-
Client:
asq:gotoasq:gotosubasq:terminatedasq:submittedasq:ctrl-connectedasq:folo-connectedasq:ctrl-disconnectedasq:folo-disconnected
-
Server:
This sections list all the events and is subject to changes.
-
Server :
-
asq:goto: Request to go to a specific slide. -
asq:gotosub: Request to go to a specific substep in a slide. -
asq:submit: Submit a possible answer to a question. -
asq:terminate: Ask the session to terminate.
In addition, the server must handle the default
connectionanddisconnectsocket events. -
-
Client :
-
asq:goto: Go to a specific slide. -
asq:gotosub: Go to a specific substep in a slide. -
asq:submitted: Indicate a new submission. -
asq:terminated: Indicate the session was terminated. -
asq:ctrl-connected: Indicate a new connection on the/ctrlnamespace. -
asq:folo-connected: Indicate a new connection on the/folonamespace. -
asq:wtap-connected: Indicate a new connection on the/wtapnamespace. -
asq:stat-connected: Indicate a new connection on the/statnamespace. -
asq:ctrl-disconnected: Indicate a client disconnected from the '/ctrl' namespace. -
asq:folo-disconnected: Indicate a client disconnected from the '/folo' namespace. -
asq:wtap-disconnected: Indicate a client disconnected from the '/wtap' namespace. -
asq:stat-disconnected: Indicate a client disconnected from the '/stat' namespace.
In addition, the client must handle the following default socket events:
connectconnectingdisconnectconnect_failederrorreconnect_failedreconnectreconnecting
-