TetaRealtime class
Teta Realtime
- Annotations
-
- @lazySingleton
Constructors
- TetaRealtime(ServerRequestMetadataStore _serverRequestMetadata)
- Constructor
Properties
-
handlers
↔ List<
RealtimeHandler> -
List of all the streams
getter/setter pair
- 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
-
on(
{StreamAction action = StreamAction.all, String? collectionId, String? collectionName, String? documentId, dynamic callback(SocketChangeEvent)?}) → Future< RealtimeHandler> -
Creates a websocket connection to the NoSql database
that listens for events of type
action
and firescallback
when the event is emitted. -
stream(
{StreamAction action = StreamAction.all, String? collectionId, String? documentId}) → StreamController< SocketChangeEvent> -
Creates a websocket connection to the NoSql database
that listens for events of type
action
-
streamCollection(
String collectionId, {StreamAction action = StreamAction.all, List< Filter> filters = const [], int page = 0, int limit = 20, bool showDrafts = false}) → StreamController<List> - Stream a single collection with its docs only
-
streamCollectionByName(
String collectionName, {StreamAction action = StreamAction.all, List< Filter> filters = const [], int page = 0, int limit = 20, bool showDrafts = false}) → StreamController<List> - Stream a single collection with its docs only
-
streamCollections(
{StreamAction action = StreamAction.all}) → StreamController< List< CollectionObject> > - Stream all collections without docs
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited