constructor({ sessionState, logger, callbacks }) {
    this._sessionState = sessionState;
    this._logger = logger.child({ cat: 'ipc,ipc-server' });
    this._ipc = null;
    this._callbacks = callbacks;
    this._workers = new Set();
    this._contexts = new Set();
  }
@param {object} options
@param {import('./SessionState')} options.sessionState
@param {Detox.Logger} options.logger
@param {object} options.callbacks
@param {(deviceConfig: DetoxInternals.RuntimeConfig['device']) => Promise<any>} options.callbacks.onAllocateDevice
@param {(cookie: any) => Promise<void>} options.callbacks.onDeallocateDevice