Skip to content

Latest commit

 

History

History
executable file
·
12 lines (6 loc) · 920 Bytes

README.md

File metadata and controls

executable file
·
12 lines (6 loc) · 920 Bytes

#Server Documentation

App.js is a standard Express-Node.js with Socket.io integration with the exception of process.env.PORT which is needed for deployment, please refer to whatever service this App.js is planning to be deployed on for port information.

io.set('log level', 2) sets Socket.io to report to the Node.js console all information regarding connecting and disconnecting. To set it to debug, change the second argument to 3. Socket.io logging

app.get('/rooms'...) The pair of functions deals with Redis, please refer to Redis implementation

var socketManager and io.sockets.on is an abstraction of socket.on('connection', function{ socket.on(event, function(socket) {...} ) }), please refer to io manager documentation and server events.

Return to Master Directory