koa-session-socketio
socket.io middleware to get session from cookie, this is useful when running socket.io independently from any http framework such as koa/express
Installation
npm i koa-session-socketio
Example
const Server = const session = const redisStore = const redisConfig = host: 'localhost' port: 6379 const store = const io = '3000' io io
API
session(name, store, [opts])
name
Type: string
session key id
store
Type: Object
koa-session
store object