API Reference
Complete API documentation for @mdrv/wsx.
Client API
- Client API - Full client API reference
- Connection management
- Sending messages
- Event listeners
Server API
- Server API - Full server API reference
- Event handlers
- Connection management
- Elysia integration
Shared API
- Shared API - Types and utilities
- Event definitions
- Protocol types
- Serializers
Overview
The library is organized into three main modules:
@mdrv/wsx/client
Browser and Bun client implementation with auto-reconnect and type-safe messaging.
@mdrv/wsx/server
Server-side implementation with Elysia framework adapter.
@mdrv/wsx/shared
Common types, protocol definition, and utilities used by both client and server.