handle websocket messages sent from server in response to test requests