Ethereumex.WebsocketServer.State (ethereumex v0.12.1)
View SourceServer state containing:
- url: WebSocket endpoint URL
- requests: Map of pending requests with their corresponding sender PIDs
- subscription requests: Map of pending subscription requests with their corresponding sender PIDs
- unsubscription requests: Map of pending unsubscription requests with their corresponding sender PIDs
- subscriptions: Map of subscription IDs to subscriber PIDs
Summary
Types
@type t() :: %Ethereumex.WebsocketServer.State{ reconnect_attempts: non_neg_integer(), requests: %{required(Ethereumex.WebsocketServer.request_id()) => pid()}, subscription_requests: %{ required(Ethereumex.WebsocketServer.request_id()) => pid() }, subscriptions: %{ required(Ethereumex.WebsocketServer.subscription_id()) => pid() }, unsubscription_requests: %{ required(Ethereumex.WebsocketServer.request_id()) => pid() }, url: String.t() }