Skip to content
robotadocs

@robota-sdk/agent-transport

The transport-neutral protocol layer shared by every Robota transport: the wire messages a client and a host exchange, the session bridge that applies them to a live session, and the delivery helpers (backpressure, resumable delivery, channel framing, handoff chunking) a carrier builds on. It owns no socket, listener or UI.

The root and ./client entry points run in the browser; Node-only admission, access-token verification, file transfer and handoff integrity helpers are under ./node. The carriers themselves are separate packages: @robota-sdk/agent-transport-ws, -http, -mcp and -webrtc.

// Shared session-message handling (browser and Node)
import { createSessionMessageHandler } from '@robota-sdk/agent-transport';
 
// Browser-side runtime decoding
import { decodeServerMessage } from '@robota-sdk/agent-transport/client';
 
// Node-only admission helpers
import { resolveAdmission } from '@robota-sdk/agent-transport/node';

Documents

  • SPEC.md — package contract, entry-point layout and ownership boundaries.
  • README — installation and usage examples.