API Reference

Complete API documentation for @mdrv/wsx.

Client API

Server API

Shared API

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.