0.3.4 • Published 4 months ago

crossws v0.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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.

^1: crossws supports Node.js via npm:ws (prebundled) or uWebSockets.js.

Contribution

  • 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