Offline adapter for MintWebSocket that never touches the network.
Pass adapter: BaileysEx.Connection.Transport.StubAdapter in the transport
options to run BaileysEx.connect/2 without a real WhatsApp connection.
The connection will fail cleanly with {:error, :stub_transport}, allowing
consumers to test event bridging, auth persistence, and other adapter logic
without network access.
Usage
{:ok, conn} = BaileysEx.connect(auth_state,
transport: {BaileysEx.Connection.Transport.MintWebSocket,
[adapter: BaileysEx.Connection.Transport.StubAdapter]}
)The connection will emit {:error, :stub_transport} during the WebSocket
upgrade phase, which the socket state machine handles as a connection failure.