DdpClient class
Constructors
Properties
- dataStreamController ↔ StreamController
-
getter/setter pair
- debug → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRetryCount ↔ int
-
getter/setter pair
- PING_SEC_INTERVAL → int
-
final
- PONG_WITHIN_SEC → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverId ↔ String?
-
getter/setter pair
- sessionId ↔ String?
-
getter/setter pair
- url ↔ String
-
getter/setter pair
- userAgent ↔ String
-
getter/setter pair
Methods
-
apply(
String method, List params) → Future -
call(
String method, List params) → Future -
disconnect(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onReconnect(
void callback(OnReconnectionCallback reconnection)) → void - Register a function to call as the first step of reconnecting. This function can call methods which will be executed before any other outstanding methods. For example, this can be used to re-establish the appropriate authentication context on the connection. callback: The function to call. It will be called with a single argument, the connection object that is reconnecting.
-
printDebug(
String str) → void -
reconnect(
) → void -
status(
) → Stream< DdpConnectionStatus> -
subscribe(
String name, List params, {Function onStop(dynamic error)?, Function? onReady}) → SubscriptionHandler -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
escapeSpecialFieldValues(
dynamic params) → dynamic - Escape a special value before sending it out to Meteor server ex. createdAt: DateTime Instance 2020-08-30 23:15:57.471 become createdAt: {$date: 1598804210504}
-
formatSpecialFieldValues(
dynamic object, {dynamic parent, dynamic field}) → void - Format a special value ex. createdAt: {$date: 1598804210504} become createdAt: DateTime Instance 2020-08-30 23:15:57.471