koa.io
Realtime web framework combine koa and socket.io.
This project is under development now.
Feature
socket.io
support koa style middleware when socket connect and disconnect.- socket event route support.
- Make
socket.io
's event handler support generator function. - Extent
socket.io
'ssocket
object likekoa
'scontext
, to compact with somekoa
's middlewares.
Installation
$ npm install koa.io --save
Usage
var koa = ; var app = ; // middleware for koaapp; // middleware for scoket.io's connect and disconnectappio; // router for socket eventappio; app;
Please check out this simple chat example.
License
MIT