Socket defines how to connect via websocket. Therefore it needs an baseUrl and an optional list of protocols. The Session will be established after calling the connect method.