mock-socket.io
Simple mock for socket.io, for testing!
Only the basics of socket.io are supported. Rooms, namespaces, etc. are not supported. If you're using socket.io for a simple app, this is a nice drop-in replacement.
Issues and Pull Requests are welcome.
usage
server.js
var Server = Servervar io = //parameters will be ignored //do stuff with `io` moduleexports = yourThingmoduleexportsio = io
client.js
var Client = Clientvar serverIo = io //abovevar io = serverIo//do stuff with `io`