Runtime wrapper around the raw connection socket.
This process owns wrapper concerns that Baileys keeps outside makeSocket:
initial connect/reconnect policy, init queries, dirty-bit handling, and
persisting emitted credential updates.
Summary
Functions
Returns a specification to start this module under a supervisor.
Request the phone to resend a placeholder message through the peer-data pipeline.
Send a message through the coordinator-owned runtime state.
Send an ACK/NACK through the coordinator-owned socket.
Send a failed-decryption retry request through the coordinator-owned retry lane.
Send a status message through the coordinator-owned runtime state.
Start the coordinator process.
Accepts a keyword list containing :config, :event_emitter, :store,
:signal_store, :supervisor, and :task_supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec request_placeholder_resend(GenServer.server(), map(), map() | nil, keyword()) :: {:ok, String.t() | nil} | {:error, term()}
Request the phone to resend a placeholder message through the peer-data pipeline.
@spec send_message(GenServer.server(), BaileysEx.JID.t(), map() | struct(), keyword()) :: {:ok, map()} | {:error, term()}
Send a message through the coordinator-owned runtime state.
@spec send_message_ack( GenServer.server(), BaileysEx.BinaryNode.t(), non_neg_integer() | nil ) :: :ok | {:error, term()}
Send an ACK/NACK through the coordinator-owned socket.
@spec send_retry_request(GenServer.server(), BaileysEx.BinaryNode.t(), keyword()) :: :ok | {:error, term()}
Send a failed-decryption retry request through the coordinator-owned retry lane.
@spec send_status(GenServer.server(), map(), keyword()) :: {:ok, map()} | {:error, term()}
Send a status message through the coordinator-owned runtime state.
@spec start_link(keyword()) :: GenServer.on_start()
Start the coordinator process.
Accepts a keyword list containing :config, :event_emitter, :store,
:signal_store, :supervisor, and :task_supervisor.