Home

Awesome

crossws

<!-- automd:badges -->

npm version npm downloads

<!-- /automd -->

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

<details> <summary>Local development</summary> </details> <!-- /automd -->

License

<!-- automd:contributors license=MIT author="pi0" -->

Published under the MIT license. Made by @pi0 and community 💛 <br><br> <a href="https://github.com/unjs/crossws/graphs/contributors"> <img src="https://contrib.rocks/image?repo=unjs/crossws" /> </a>

<!-- /automd --> <!-- automd:with-automd -->

🤖 auto updated with automd

<!-- /automd -->