basic websocket communication implemented