Decodes and returns the next message that was sent on this websocket.
A function to decode a message.
Returns the next message that was sent on this websocket.
Simulates a websocket message that was sent by the server and received by the client.
The websocket message data.
Resets the internal state of the mock by clearing any accrued sent messages and removing all handlers.
Skips the next N sent messages.
The number of sent messages to skip over.
Returns
true
if there are remaining sent messages..