Lesterpig / sockpress

A simple express.js and socket.io wrapper for nodejs
MIT License
28 stars 9 forks source link

Add app.io.route(...) #1

Closed Lesterpig closed 10 years ago

Lesterpig commented 10 years ago

Like express.io, sockpress should have a convenience method for socket routes :

app.io.route("action", function(socket) {
    var action = socket.data;
    socket.emit("action_done");
});