BloomRealtimeChannelClient class abstract

Minimal realtime client contract that BloomRealtimeBinding wraps.

Concrete implementations (such as a browser package:web WebSocket client or a server mock) manage physical transport, heartbeat ping/pong cycles, reconnect backoffs, and channel multiplexing.

Ownership & Disposal Contract

The creator of the BloomRealtimeChannelClient owns its lifecycle and must call dispose when the client is no longer needed to close underlying sockets and cancel timers.

Properties

hashCode → int
The hash code for this object.
no setterinherited
onStateChanged → Stream<RealtimeConnectionState>
Broadcast stream that emits whenever state changes.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → RealtimeConnectionState
The current connection state of the client.
no setter

Methods

dispose() → void
Closes all active socket connections, cancels timers, and releases resources.
joinPresence(String channelName, Map<String, dynamic> userInfo) → Stream<List<Map<String, dynamic>>>
Joins presence in channelName publishing userInfo metadata.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(String channelName) → Stream<Map<String, dynamic>>
Subscribes to channelName and returns a broadcast stream of received event payloads.
toString() → String
A string representation of this object.
inherited
unsubscribe(String channelName) → void
Unsubscribes from channelName, ceasing message delivery for this channel.

Operators

operator ==(Object other) → bool
The equality operator.
inherited