View Source Nostr.RelaySocket.Sender (Nostr v0.1.3)

Responsible for sending frames through the websocket connection

Link to this section Summary

Link to this section Functions

@spec close(map()) :: Mint.HTTP.t()
Link to this function

send_close_message(state, subscription_id)

View Source
@spec send_close_message(map(), pid()) :: map()
@spec send_pong(map(), String.t()) :: {:ok, map()} | {:error, map(), any()}
Link to this function

send_subscription_request(state, atom_subscription_id, json, subscriber)

View Source
@spec send_subscription_request(map(), atom(), String.t(), pid()) :: map()
@spec send_text(map(), String.t()) :: map()