An event listener to be called when the connection is opened.
An event listener to be called when a message is received from the server.
An event listener to be called when the connection is closed.
An event listener to be called when an error occurs.
this message wrapper will become a more robust type in future releases and also includes a context message that can be used for logging.
WsResponse signifies a successful Websocket client interaction, and also includes a context message that can be used for logging.