NatsClient constructor

NatsClient(
  1. String _currentHost,
  2. int _currentPort, {
  3. Level logLevel = Level.INFO,
})

Implementation

NatsClient(
  this._currentHost,
  this._currentPort, {
  Level logLevel = Level.INFO,
})  : this._messagesController = new StreamController.broadcast(),
      this._subscriptions = [],
      this.tcpClient = TcpClient(host: _currentHost, port: _currentPort) {
  this._initLogger(logLevel);
}