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