started working on websocket code