Signal class

Main Signal class for WebSocket-based real-time communication

Constructors

Signal(Config _config)

Properties

connected bool
Check if the connection is active
no setter
connecting bool
Check if currently connecting
no setter
hashCode int
The hash code for this object.
no setterinherited
reconnecting bool
Check if currently reconnecting
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acquireLock(String component) Future<SignalLock>
Acquire a lock for a component
connect() Future<void>
Connect to the Signal WebSocket endpoint
dispose() Future<void>
Dispose of the Signal instance
findLock(String component) SignalLock?
Find an existing lock for a component
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off<T extends SignalMessage>(SignalMessageType type, SignalMessageHandler<T> handler) → void
Remove a handler for a specific message type
on<T extends SignalMessage>(SignalMessageType type, SignalMessageHandler<T> handler) → void
Register a handler for a specific message type
releaseLock(SignalLock lock) → void
Release a lock
send<T extends SignalMessage>(T message) Future<void>
Send a message through the Signal connection
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

messageId() Future<String>
Generate a unique message ID