ReadonlyconnectionEmit connection.update close (optionally with an error).
Every event emitted, in order: full audit trail.
Every message the bot "sent", in order.
Presence updates sent via sendPresenceUpdate().
Keys passed to readMessages().
Inject any raw incoming WAMessage.
Inject an incoming text message; resolves after handlers get a turn.
Clear outbox/logs and reject pending waiters; listeners stay attached.
The mock sock — hand to bot code in place of makeWASocket().
Wait for the next outgoing message (optionally filtered). Rejects on timeout.
Emit connection.update open.