šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

crossws

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crossws

Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers

0.4.1
latest
Version published
Weekly downloads
1.9M
-1.88%
Maintainers
1
Weekly downloads
 
Created

crossws

npm version npm downloads

Elegant, typed, and simple toolkit to implement cross-platform WebSocket servers.

šŸ‘‰ šŸ“– documentation

Features

🧩 Seamlessly integrates with Bun, Cloudflare Workers, Deno and Node.js and any compatible web framework.

āœ… Prebundled with ws for Node.js support with alternative/much faster uWebSockets adapter.

šŸ“¦ Extremely lightweight and tree-shakable conditional ESM exports.

šŸš€ High-performance and simple hooks API, without per-connection callback creation.

🌟 Typed hooks API and developer-friendly object inspection.

Contribution

Local development
  • Clone this repository
  • Install the latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run examples using pnpm play: scripts

License

Published under the MIT license. Made by @pi0 and community šŸ’›

šŸ¤– auto updated with automd

FAQs

Package last updated on 23 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