code: function sendClientAlertMessage(ws, alert) {
    var msg = JSON.stringify({
      custom: {
        alert: alert
      }
    });
    ws.write(msg);
  }
docs: Sends the given string to the client, where it will be displayed as a
  JavaScript alert message.