QuickJsSyncServer constructor

QuickJsSyncServer()

Implementation

QuickJsSyncServer() {
  address = InternetAddress.loopbackIPv4;
  port = 0;
  _dispatchPort = new ReceivePort();

  IsolateNameServer.registerPortWithName(
    _receiveCallDartResponsePort.sendPort,
    'ReceiveCallDartResponsePort',
  );

  _dispatchPort.listen((message) {
    if (message == 'STOP') {
      _server.close();
    }
  });
}