Closed multimeric closed 8 years ago
Contrary to the example code, this doesn't actually work:
const IO = require('koa-socket'); const app = require('koa')(); const chat = new IO({ namespace: 'chat' }) chat.attach( app ) app.chat.broadcast('event')
app.chat.broadcast is not a function
This should be fixed with this commit.
Contrary to the example code, this doesn't actually work:
app.chat.broadcast is not a function