Install:
npm install sockjs-client-ws-mimic
sockjs-client-ws-mimic
Drop in replacement for sockjs-client for Node.js. Perfect for building both client and node.js tests with same client-side code.
Why mimic?
I needed a way to build both the JavaScript client library and a Node.js library for testing. Using this you can simply change the included library and use same syntanx for testing and client APIs.
sockjs-client-ws?
Why extend- More reliable than sockjs-client-node and sockjs-client (same name as real sock.js client but not the same module) modules
- Supports multiple connections (perfect for testing)