modified websocket server example to echo