@agora-protocol/transport
v0.3.3
Published
ACP transport layer: WebSocket (sync) and HTTP POST (async)
Maintainers
Readme
@agora-protocol/transport
Transport layer for the ACP Protocol: WebSocket (sync) and HTTP-POST (async).
Install
npm install @agora-protocol/transportWhat's inside
WsSyncTransport+createWsSyncServer+createWsHandshakeServer— low-latency bidirectional sessions with handshake overws://+ session keys for ChaCha20-Poly1305.HttpAsyncTransport+createHttpAsyncServer— POST + poll pattern for higher-latency or firewall-friendly deployments.AsyncOrderingManager— reassembles an in-order chain from async delivery.wrapMessage/unwrapMessage— envelope codec (signs + encrypts per-message).InMemorySyncTransport/InMemoryAsyncTransport— in-process transports for tests and the conformance suite.
Transports are pluggable: ACPRoom.attachTransport / attachAsyncTransport accept anything that matches the minimal interfaces.
License
MIT
