RealtimeSubscription class

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
joinedOnce bool
getter/setter pair
params Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 nonexistent 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
updateJoinPayload(Map<String, dynamic> payload) → void

Operators

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