client responds to server message through websocket, server pretty-prints response to console