code: function sendConnectFailed(wsConn) {
      var message = {
        type:  "response",
        name:  "connect",
        from:  "server",
        error: "invalid connect message"
      }
  
      wsConn.sendUTF(JSON.stringify(message))
      wsConn.close(1000, message.error)
      cleanUp()
    }
docs: -----------------------------------