Realtime constructor

Realtime({
  1. required Client client,
  2. bool enterprise = false,
  3. Map<String, dynamic> kwargs = const {},
})

Implementation

Realtime({
  required Client client,
  bool enterprise = false,
  Map<String, dynamic> kwargs = const {},
}) : super(
        client: client,
        baseUrl: '',
        enterprise: enterprise,
        kwargs: kwargs,
      ) {
  if (enterprise) {
    realtimeBaseUrl = '${client.baseUrl}v1/enterprise/realtime/';
  } else {
    realtimeBaseUrl = '${client.baseUrl}v6/realtime/';
  }
}