added support for connection to sessions via websocket