code: function getLink(ws, req) {  // {{{2
    if (! req.lid) {
      O.log.error(ws, 'Missing link', req);
      return;
    }
  
    var result = ws.links[req.lid.toString(16)];
    if (result) {
      return result;
    }
  
    if (req.type === 'error') {
      O.log.error(ws, 'Missing link', req);
    } else {
      ws.txError(req.lid, O.error(ws, 'Missing link', req));
    }
    return;
  }
docs: Private {{{1