.event', onevent);
        };

        connection.onclose = function(e) {
          console.log("Connection closed.");

          _Content.refs.Status.setState({data: "connection closed"});
        };

        connection.open();
      }
    </script>
  </head>

  <body>
    <p>Hit F12 to see javascript console.</p>

    <div id="content">
    </div>

    <script type="text/jsx">
      var Status = React.createClass(
      {
          getInitialState: function() {
              return {data: "not connected"}