FayeClient class

Constructors

FayeClient(String baseUrl, {Iterable<String>? protocols, int retry = 5, WebSocketChannelProvider? webSocketChannelProvider, Level logLevel = Level.ALL, LogHandlerFunction? logHandlerFunction})

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
hasTimeouts bool
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
protocols Iterable<String>?
final
retry int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state FayeClientState
The current state of the client
no setter
stateStream Stream<FayeClientState>
The current state of the client in the form of stream
no setter
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
webSocketChannelProvider → WebSocketChannelProvider?
Connection function Used only for testing purpose
final

Methods

addExtension(Map<String, MessageHandler> extension) → void
inherited
addExtensions(Iterable<Map<String, MessageHandler>> extensions) → void
inherited
cancelAllTimeout() → void
inherited
cancelTimeout(String id) → void
inherited
connect({VoidCallback? callback}) → void
disconnect() Future<void>
handshake({VoidCallback? callback}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pipeThroughExtensions(String stage, Message message, void callback(Message message)) → void
inherited
publish(String channel, {required Map<String, Object?> data}) Future<void>
removeExtension(Map<String, MessageHandler> extension) → void
inherited
setTimeout(Duration duration, void callback()) String
inherited
subscribe(String channel, {Callback? callback, bool force = false}) Future<Subscription>
toString() String
A string representation of this object.
inherited
unsubscribe(String channel, Subscription subscription) → void

Operators

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