从访问会话。
安装
npm install socket-io.sessions
用法
//configure passport and express
var socketIo = require ( "socket.io" ) ,
socketIoSessions = require ( "socket-io.sessions" ) ;
var sio = socketIo . listen ( webServer ) ;
//same attribute than the session middleware http://www.senchalabs.org/connect/middleware-session.html
sio . set ( "authorization" , socketIoSessions ( {
key : 'e
1