sendMessage
Method to send a message to the web socket.
Return
true if the message was sent successfully, otherwise false.
Parameters
message
Message which should be sent.
Method to send a message to the web socket.
true if the message was sent successfully, otherwise false.
Message which should be sent.