Creates a client connection to a communication server for registering connection listeners.
Get the underlying web socket instance
Closes the websocket
Optional
reason: stringThe reason for closing. If specified it is sent unencrypted to the remote side!
Releases the underlying websocket, so that it can be used by another class.
Attention: If messages arrive in the meantime they might get lost.
Send response to authentication request message.
Send a register message to the communication server.
Starts answering pings of the server.
Interval since last pong when to send another ping.
Time to wait for the pong (after a ping) before severing the connection.
Stops answering pings of the server.
Terminates the web socket.
Optional
reason: stringThe reason for closing. If specified it is sent unencrypted to the remote side!
Wait for a message with the specified command.
The expected command of the next message
This class implements the client side of communication server communication