ws_mock

Module utils

source
Expand description

Utilities used throughout testing and implementations that may be of use.

Functionsยง

  • Given a SplitStream receiver, receive messages until timing out and return all messages in a Vec<String>.
  • Send a single message to the server, and return the SplitStream receiver created by connecting to the server.