🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

unws

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unws

Unified WebSocket API for Node.js, Bun and modern browsers.

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
20K
14.5%
Maintainers
1
Weekly downloads
 
Created
Source

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 三咲智子

FAQs

Package last updated on 10 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts