@aurumjs/server
v0.10.1
Published
WebSocket-powered server for synchronizing Aurum data sources between a server and client
Readme
@aurumjs/server
Versioned WebSocket server for Aurum data-source synchronization and RPC. Browser and explicit transport ownership live in @aurumjs/remote.
import { AurumServer } from '@aurumjs/server';
const server = await AurumServer.start({ port: 8080 });
server.exposeFunction('status', () => ({ ready: true }), {
authenticate: (token) => token === process.env.API_TOKEN
});
await server.close();Incoming frames are byte-limited and runtime validated against protocol version 1. The server supports connection authentication, acknowledged subscriptions, revisioned array snapshots, per-client message/subscription/RPC limits, outbound queue limits, backpressure, batched updates, cancellable RPC handlers, and graceful shutdown.
Run npm test -w @aurumjs/server for real WebSocket integration tests and npm run benchmark -w @aurumjs/server for the local fan-out baseline.
