src/multiplex.js
function splitName(method) {
  var pos = method.indexOf('.');
  if (pos < 0)
    return [ null, method ];
  var domainName = method.substring(0, pos);
  var methodName = method.substring(pos + 1);
  return [ domainName, methodName ];
}
function splitName(method) {
  var pos = method.indexOf('.');
  if (pos < 0)
    return [ null, method ];
  var domainName = method.substring(0, pos);
  var methodName = method.substring(pos + 1);
  return [ domainName, methodName ];
}
Splits a string into domain and method