RealtimeService class

The service that handles the Realtime APIs.

Usually shouldn't be initialized manually and instead PocketBase.realtime should be used.

Constructors

RealtimeService(PocketBase client)

Properties

client PocketBase
no setterinherited
clientId String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(String topic, SubscriptionFunc listener, {String? expand, String? filter, String? fields, Map<String, dynamic> query = const {}, Map<String, String> headers = const {}}) Future<UnsubscribeFunc>
Register the subscription listener.
toString() String
A string representation of this object.
inherited
unsubscribe([String topic = ""]) Future<void>
Unsubscribe from all subscription listeners with the specified topic.
unsubscribeByPrefix(String topicPrefix) Future<void>
Unsubscribe from all subscription listeners starting with the specified topic prefix.
unsubscribeByTopicAndListener(String topic, SubscriptionFunc listener) Future<void>
Unsubscribe from all subscriptions matching the specified topic and listener function.

Operators

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