-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
10 lines (8 loc) · 696 Bytes
/
README
File metadata and controls
10 lines (8 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
Socket Handler is a structure for cleanly handling user sessions and multiple namespaces with express,socket.io jquery.
It consists of a number of pieces adapted from other examples seen online, including: http://spiritconsulting.com.ar/fedex/2010/11/events-with-jquery-nodejs-and-socket-io/
If I missed anyone please email for inclusion.
lib/socketHandler.js sets the session on the socket on client connection
lib/exampleSocket is an inidivual socket name space
public/js/jquery-socket-event-handler.js A jquery extension that handles socket.io connection and message dispatching
pub/index.html Demonstrates triggering and responding to events
app.js How to include it all in your express app