RealtimeSubscription class Null safety

Constructors

RealtimeSubscription(String topic, RealtimeClient socket, {Map<String, dynamic> params = const {}})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
params Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
socket RealtimeClient
final
topic String
final

Methods

canPush() bool
isClosed() bool
isErrored() bool
isJoined() bool
isJoining() bool
isLeaving() bool
isMember(String? topic) bool
joinRef() String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
off(String event) → void
on(String event, void callback(dynamic payload, {String? ref})) → void
onClose(Function callback) → void
onError(dynamic callback(String?)) → void
onMessage(String event, dynamic payload, {String? ref}) → dynamic
Overridable message hook [...]
push(ChannelEvents event, Map<String, String> payload, {Duration? timeout}) → Push
rejoin([Duration? timeout]) → void
rejoinUntilConnected() → void
replyEventName(String? ref) String
sendJoin(Duration timeout) → void
subscribe({Duration? timeout}) → Push
toString() String
A string representation of this object. [...]
inherited
trigger(String event, {dynamic payload, String? ref}) → void
unsubscribe({Duration? timeout}) → Push
Leaves the channel [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited