Websocket

Adding web socket support to manage client disconnections