simple-websocket-server

WebSockets server that mimics the Node.js `net` module API, yielding duplex streams instead of the 'onmessage/send' WebSockets API. Compatible with simple-websocket (https://github.com/feross/simple-websocket)

MIT License

Stars
1
Committers
2

simple-websocket-server

WebSockets server that mimics the Node.js net module API, yielding duplex streams instead of the 'onmessage/send' WebSockets API. Compatible with simple-websocket (https://github.com/feross/simple-websocket)

features

  • goes really well with simple-websocket
  • supports text and binary data
  • node.js duplex stream interface

Usage

Install

> npm install simple-websocket-server

Usage Example

API