unws
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

unws npm

Unit Test

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')

[!TIP] For Node.js v20.10.0 and above, the WebSocket global object is directly accessible without this package. See here.

Sponsors

License

MIT License © 2023-PRESENT 三咲智子

Readme

Keywords

none

Package Sidebar

Install

npm i unws

Weekly Downloads

648

Version

0.3.2

License

MIT

Unpacked Size

3.7 kB

Total Files

8

Last publish

Collaborators

  • sxzz