{"library":"crossws","type":"library","category":null,"description":"Cross-platform WebSocket server toolkit supporting Node.js, Deno, Bun, and Cloudflare Workers. Version 0.4.5 provides a unified hooks API with typed events, prebundled ws for Node.js with optional uWebSockets adapter, and tree-shakable ESM exports. It is maintained by the h3js organization and follows a regular release cadence. Key differentiators: zero per-connection callback overhead, conditional exports for each platform, and TypeScript-first developer experience.","language":"javascript","status":"active","version":"0.4.5","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install crossws","imports":["import { defineWebSocketAdapter } from 'crossws'","import { createWebSocket } from 'crossws'","import type { CrossWSAdapter } from 'crossws'"]},{"cmd":"yarn add crossws","imports":[]},{"cmd":"pnpm add crossws","imports":[]}],"homepage":"https://crossws.h3.dev","github":"https://github.com/h3js/crossws","docs":null,"changelog":null,"pypi":null,"npm":"crossws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}