HttpProtocol class

Inheritance

Constructors

HttpProtocol(Uri uri, {bool acceptBadCertificate = false})

Properties

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

Methods

addListener(String eventName, Function callback, {bool once = false}) → void
inherited
clientDisconnected() → void
Called when the client's connection is closed
inherited
clientNetworkError([dynamic error]) → void
Called when the client's connection is closed with an error state
inherited
close() → void
Called when the client's connection is closed
inherited
connect() Future<void>
inherited
emit(String eventName, [List? positionalArguments, Map<Symbol, dynamic>? namedArguments]) bool
Call all listeners registered for eventName event
inherited
eventNames() List<String>
inherited
isReady() bool
inherited
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
protocolConnect() Future<void>
override
query(KuzzleRequest request) Future<KuzzleResponse>
Register a response event handler for request
inherited
removeAllListeners([String? eventName]) → void
inherited
removeListener(String eventName, Function callback) → void
inherited
send(KuzzleRequest request) Future<void>
Sends a payload to the connected server
override
toString() String
A string representation of this object.
inherited

Operators

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