code: function default_onRequest(request) {
      if (-1 == request.requestedProtocols.indexOf(exports.wsProtocol)) {
        return request.reject()
      }
  
      request.accept(exports.wsProtocol, request.origin)
    }
docs: -----------------------------------