universal-ws-client
v1.0.4
Published
Use the same WebSocket client code in a browser or Node.js for isomorphic apps with TypeScript
Downloads
10
Maintainers
Readme
Uses the native WebSocket client code in a browser and the ws package client on Node.js, enabling isomorphic applications to use WebSockets. Keeps your browser build slim, by not including any of the Node WebSocket implementation.
Installation
npm install --save universal-ws-client
Usage
import WebSocket from 'universal-ws-client';