/universal-ws

A WebSocket transport library for node and browsers

Primary LanguageTypeScriptMIT LicenseMIT

NPM NPM

node

universal-ws

An Isomorphic transport layer library for both node and browsers. Built on ws and native browser WebSocket implementations.

Features

In addition to standard websocket features, universal-ws provides:

  • Server-to-Client Heartbeat
  • Request-Response bidirectionally
  • Connection authentication

Getting started

This library is comprised of a client and server module:

Testing

run all tests

npm test

To run browser tests, install optional dependencies

Unit tests

npm run unit-test

System tests

npm run system-test

Browser tests

npm install nightwatch chromedriver -G
npm run browser-test