unws
v0.2.4
Published
Unified WebSocket API for Node.js, Bun and modern browsers.
Downloads
6,596
Readme
unws
Unified WebSocket API for Node.js, Bun and modern browsers.
Install
npm i unws
Usage
import { WebSocket } from 'unws'
const ws = new WebSocket('ws://localhost:8080')