realtime library

Realtime multi-broadcaster client for SP Laravel (Reverb, Pusher, Soketi, Ably).

Classes

Driver
Configuration driver representing a target Laravel broadcasting server.
PusherFrame
A Pusher wire protocol message frame.
RealtimeTransport
Abstract transport contract for WebSocket and realtime connections.
RecordEvent
Broadcast event emitted when a record is mutated on the backend.
SpRealtime
Realtime client connecting to Laravel broadcasting services via the Pusher protocol.
WebSocketTransport
Production RealtimeTransport backed by package:web_socket_channel.

Enums

PusherCloseAction
Action to take based on a Pusher WebSocket close code.
RecordAction
Action performed in a RecordEvent.

Functions

classifyPusherCloseCode(int? code) → PusherCloseAction
Classifies a WebSocket close code into a PusherCloseAction.
normalizeTenantChannel(dynamic tenantId) → String
Normalizes a tenant channel name, handling private- prefixing and global fallback.