KuzzleProtocol class abstract

Inheritance
Implementers

Constructors

KuzzleProtocol(Uri uri, {bool autoReconnect = false, Duration reconnectionDelay = const Duration(seconds: 1), int reconnectionAttempts = 10})

Properties

abortConnection ↔ bool
getter/setter pair
autoReconnect ↔ bool
getter/setter pair
connectionAborted → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
protocolState ↔ KuzzleProtocolState
getter/setter pair
reconnectionAttempts ↔ int
getter/setter pair
reconnectionDelay ↔ Duration
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → KuzzleProtocolState
no setter
uri → Uri
final

Methods

addListener(String eventName, Function callback, {bool once = false}) → void
inherited
close() → void
Called when the client's connection is closed
connect() → Future<void>
emit(String eventName, [List? positionalArguments, Map<Symbol, dynamic>? namedArguments]) → bool
Call all listeners registered for eventName event
inherited
eventNames() → List<String>
inherited
isReady() → bool
listenerCount(String eventName) → int
inherited
listeners(String eventName) → List<_KuzzleListener>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String eventName, Function callback) → void
inherited
on(String eventName, Function callback) → void
inherited
once(String eventName, Function callback) → void
inherited
prependListener(String eventName, Function callback, {bool once = false}) → void
inherited
query(KuzzleRequest request) → Future<KuzzleResponse>
Register a response event handler for request
removeAllListeners([String? eventName]) → void
inherited
removeListener(String eventName, Function callback) → void
inherited
toString() → String
A string representation of this object.
inherited

Operators

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