NostrWebSocketsService class
A service that manages the relays web sockets connections
Constructors
- NostrWebSocketsService({required NostrClientUtils utils})
- A service that manages the relays web sockets connections
Properties
- connectionTimeout ↔ Duration
-
The connection timeout for the web sockets.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- utils → NostrClientUtils
-
The utils instance.
final
Methods
-
connectRelay(
{required String relay, bool? shouldIgnoreConnectionException, void onConnectionSuccess(WebSocketChannel webSocket)?}) → Future< void> -
Connects to a
relay
web socket. Trigger theonConnectionSuccess
callback if the connection is successful -
getHttpUrlFromWebSocketUrl(
String relayUrl) → Uri - Changes the protocol of a websocket url to http.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited