DdpClient class

Implemented types

Constructors

DdpClient(String _name, String url, String origin, {Duration reconnectInterval = const Duration(seconds: 25)})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
heartbeatInterval Duration
read / write
heartbeatTimeout Duration
read / write
reconnectInterval Duration
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
session String
read-only
subscriptions List
read-only
version String
read-only

Methods

addConnectionListener(ConnectionListener listener) → void
override
addReconnectListener(DdpReconnectListener listener) → void
addStatusListener(StatusListener listener) → void
override
call(String serviceMethod, List args) Future<Call>
close() → void
collectionByName(String name) Collection
collectionStats() List<CollectionStats>
connect() → void
go(String serviceMethod, OnCallDone done, List args) Call
inboxManager() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifySubscription(String name, SubscriptionStatus status) → void
onAuthDone() → void
reconnect() → void
removeReconnectListener(DdpReconnectListener listener) → void
removeStatusListener(StatusListener listener) → void
override
resetStats() → void
send(dynamic msg) → void
setSocketLogActive(bool active) → void
socketLogActive() bool
stats() ClientStats
sub(String subName, List args) Future<Call>
subscribe(String subName, OnCallDone done, List args) Call
subscriptionReady(SubscriptionListener listener) → void
override
toString() String
A string representation of this object. [...]
inherited
unSub(String id) Future<Call>
unSubscribe(String id, OnCallDone done) Call

Operators

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