Creates a Session by trying to connect to the websocket endpoint. When connection was successfully made, you can send and receive message via websockets.
Return
Session when connection was successful
Parameters
Throws
when connection cannot be established