ModuleDispatcher constructor

ModuleDispatcher(
  1. String _socketPath
)

Implementation

ModuleDispatcher(this._socketPath)
{
    String adjustedSocketPath = _socketPath;

    if(_socketPath.startsWith("unix://"))
    {
      adjustedSocketPath = adjustedSocketPath.replaceAll("unix://", "");
    }
    _channel = ClientChannel(
        InternetAddress(adjustedSocketPath, type: InternetAddressType.unix),
        options:
            const ChannelOptions(credentials: ChannelCredentials.insecure()));
    _stub = ClaidServiceClient(_channel);
    // options: CallOptions(timeout: const Duration(seconds: 30)));
}