Socket
Socket
Sign inDemoInstall

crossws

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    crossws

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


Version published
Weekly downloads
637K
increased by4.58%
Maintainers
1
Install size
347 kB
Created
Weekly downloads
 

Changelog

Source

v0.2.4

compare changes

🚀 Enhancements

  • Auto generated peer id (a3b61f5)
  • Basic pubsub support for node (4bd61ca)

💅 Refactors

  • Improve peer inspect message (9f7e1f0)

📖 Documentation

🏡 Chore

❤️ Contributors

Readme

Source

⛨ CrossWS

npm version npm downloads

Elegant, typed, and simple interface to implement platform-agnostic WebSocket servers.

👉 📖 documentation

Features

🧩 Seamlessly integrates with, Bun, Deno, Cloudflare Workers and Node.js (ws || uWebSockets).

🚀 High-performance server hooks, avoiding heavy per-connection events API (why)

📦 No external dependencies, includes ws for Node.js support

💡 Extremely lightweight and tree-shakable packaging with ESM and CJS support

🔍 Developer-friendly object logging

[!IMPORTANT] This project and API are under development.

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

Last updated on 26 Feb 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc