Skip to content

v1.0.0

Choose a tag to compare

@mdrv mdrv released this 17 Jan 11:14
· 16 commits to main since this release

@mdrv/wsx v1.0.0

Type-safe WebSocket library with Zod validation for Elysia and browser clients.

Features

  • ✅ End-to-end type safety with TypeScript
  • ✅ Zod validation for all messages
  • ✅ Auto-reconnection with exponential backoff
  • ✅ Request/response pattern over WebSocket
  • ✅ CBOR serialization (JSON also available)
  • ✅ First-class Elysia framework support

Installation

bun add @mdrv/wsx zod cbor-x elysia

See README.md for usage examples.