9 lines
405 B
JavaScript
9 lines
405 B
JavaScript
// FIXME: This file should handle the sockets and the subscriptions
|
|
// Exports must include
|
|
// - initSocket (initialize the connection to the socket server)
|
|
// - socket (variable resulting of initSocket function)
|
|
|
|
// Functions may include:
|
|
// - subscribe (subscribe to a room's stream or chat)
|
|
// - unsubscribe (unsubscribe from a room's stream or chat)
|
|
// - sendMessage (send a message to a room's chat)
|