phasync
Manual / WebSockets and SSE

Manual

WebSockets and SSE

Push to the browser with Server-Sent Events or WebSockets.

Introduction#

Swerve::publish() and Swerve::subscribe() move a message between workers; a request that keeps a WebSocket or a ServerSentEvents stream open relays what it receives to its own browser. See Realtime: SSE and WebSockets for both as complete chat rooms, and OrderedChannel for when the order between publishers also matters.

Guides#

Examples#

Reference#