working on websocket