function requestChannelRequest(server, channel, message) {
  try {
    var res = null;
    // do we have a request or is this just rendezvous?
    var req = new IncomingMessage(message, channel);
    if ( message.request.body == true) {
      channel.pendingRequest = req;
    } else {
      req.push(null);
    }

    res = new ServerResponse(req);
    res.requestId = message.request.id;
    res._rendezvousChannel = channel;
    res._assignSocket();
    server.emit('request', req, res);
  } catch (err) {
    console.log(err);
  }
}
/* 
 * accept a control-channel request
 */
accept a control-channel request
accept a control - channel request
function requestChannelRequest(server, channel, message) {
  try {
    var res = null;
    var req = new IncomingMessage(message, channel);
    if ( message.request.body == true) {
      channel.pendingRequest = req;
    } else {
      req.push(null);
    }
    res = new ServerResponse(req);
    res.requestId = message.request.id;
    res._rendezvousChannel = channel;
    res._assignSocket();
    server.emit('request', req, res);
  } catch (err) {
    console.log(err);
  }
}
function requestChannelRequest ( server , channel , message ) { try { var res = null ; var req = new IncomingMessage ( message , channel ) ; if ( message . request . body == true ) { channel . pendingRequest = req ; } else { req . push ( null ) ; } res = new ServerResponse ( req ) ; res . requestId = message . request . id ; res . _rendezvousChannel = channel ; res . _assignSocket ( ) ; server . emit ( 'request' , req , res ) ; } catch ( err ) { console . log ( err ) ; } }
accept a control-channel request
accept a control - channel request
// do we have a request or is this just rendezvous?