Added code that sets Current WebSocket and Session.