ctrl-web-socket-server
An abstraction around socket.io.
Installation
Yarn is recommended for installation.
$ yarn add ctrl-web-socket-server
But you can still use npm.
$ npm install --save ctrl-web-socket-server
Usage
Simple (built-in NodeJS HTTP Server):
const CtrlWebSocketServer = const http = const httpServer = httpconst ctrlWebSocketServer = httpServer httpServer
Using the ctrl
framework:
const CtrlHttpServer = const CtrlWebSocketServer = const httpServer = port: 8080const webSocketServer = httpServer httpServerstart
Methods
Full documentation to come soon!
License
Copyright (c) 2016 Martin Experiments LLC
MIT (https://www.opensource.org/licenses/MIT)