added websocket endpoint and session registry