function _openClientConnection() {
  _openClientConnection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee12(channelName, readerUuid) {
    var pathToSocket, client;
    return _regenerator["default"].wrap(function _callee12$(_context12) {
      while (1) switch (_context12.prev = _context12.next) {
        case 0:
          pathToSocket = socketPath(channelName, readerUuid);
          client = new _net["default"].Socket();
          return _context12.abrupt("return", new Promise(function (res, rej) {
            client.connect(pathToSocket, function () {
              return res(client);
            });
            client.on('error', function (err) {
              return rej(err);
            });
          }));
        case 3:
        case "end":
          return _context12.stop();
      }
    }, _callee12);
  }));
  return _openClientConnection.apply(this, arguments);
}
writes the new message to the file-system
so other readers can find it
@return {Promise}