DirectusWebSocket class

Constructors

DirectusWebSocket({required DirectusApiManager apiManager, required List<DirectusWebSocketSubscription<DirectusData>> subscriptionDataList, dynamic onError(Object)?, dynamic onDone()?})
factory

Properties

apiManager DirectusApiManager
final
channel → WebSocketChannel
final
connectionError Object?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasSubscriptions bool
no setter
isReady bool
getter/setter pair
onDone ↔ dynamic Function()?
getter/setter pair
onError ↔ dynamic Function(Object)?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionDataList List<DirectusWebSocketSubscription<DirectusData>>
no setter
subscriptionDataMap Map<String, DirectusWebSocketSubscription<DirectusData>>
final

Methods

addSubscription(DirectusWebSocketSubscription<DirectusData> subscription) → void
disconnect({int code = 1000, String reason = "Normal Closure"}) Future
listenSocket(dynamic message) String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSocketDone() → void
onSocketError(Object error) → void
removeSubscription({required String uid}) → void
Sends an unsubscribe request to the server. The actual removal of the subscription will be done in the listenSocket method
toString() String
A string representation of this object.
inherited

Operators

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