Socket.IO bindings for CompoundJS

Installation

npm install co-socket --save

then add co-socket to config/autoload.js

Usage

Add routes to config/routes.js

map.socket('some-event', 'controller#action');

When client emit event some-event, then action action of controller controller will gain control.
Data passed to the event will be available as params variable.
Calling send will call the callback to the current socket.