<!DOCTYPE html>
  <head>
    <meta charset="utf-8" />
    <title>WebSocket Echo Test</title>
  </head>
  <body>
    <h2>WebSocket Echo Test</h2>
    <div id="output"></div> 

    <script language="javascript" type="text/javascript">
      var wsUri = "ws://localhost:4000/echo";
      var output;
      var websocket;
      function init() {
        output = document.getElementById("output");
        testWebSocket();
      }
      function testWebSocket() {
        websocket = new WebSocket(wsUri);
        we