ReadonlyhookLifecycle hook call records
ReadonlyreceivedAll packets received from the simulated client
ReadonlysentAll packets sent by the server via onSend
ReadonlywireThe MqttWire instance being tested
Get the last sent packet.
Get the protocol version (set after CONNECT).
Clear all recorded packets and hook calls.
Simulate client sending CONNECT.
Simulate client sending PINGREQ.
Simulate client sending PUBLISH.
Simulate client sending PUBREL (QoS 2 continuation).
Simulate client sending UNSUBSCRIBE.
Get all sent packets of a specific type.
Get the last sent packet of a specific type.
Send raw bytes to the wire.
Set custom onConnect handler.
Set custom onSubscribe handler.
Set custom onUnsubscribe handler.
Wait for a specific number of sent packets.
Test harness for server-side MqttWire.
Provides utilities for: