Added websocket library and made logic for getting data from server