From http://www.websocket.org/echo.html