code: async function createSocketEventEmitter(channelName, readerUuid, paths) {
      const pathToSocket = socketPath(channelName, readerUuid, paths);
  
      const emitter = new events.EventEmitter();
      const server = net
          .createServer(stream => {
              stream.on('end', function() {});
              stream.on('data', function(msg) {
                  emitter.emit('data', msg.toString());
              });
          });
  
      await new Promise((resolve, reject) => {
          server.on('error', async (err) => {
              const useErr = await connectionError(err);
              reject(useErr);
          });
  
          server.listen(pathToSocket, async (err, res) => {
              if (err) {
                  const useErr = await connectionError(err);
                  reject(useErr);
              } else resolve(res);
          });
      });
  
      return {
          path: pathToSocket,
          emitter,
          server
      };
  }
docs: creates the socket-file and subscribes to it
  @return {{emitter: EventEmitter, server: any}}