Realtime constructor

Realtime({
  1. required String clientId,
  2. required void authCallback(
    1. void (
      1. String
      )
    ),
})

Implementation

Realtime({
  required this.clientId,
  required this.authCallback,
}) {
  platform.invokeMethod(
    rtHashCode: hashCode,
    method: "Realtime()",
    args: {
      "clientId": clientId,
      "authCallback": platform.allowInterop(_authCallback),
    },
  );
  connection = Connection(hashCode);
  channels = Channels(hashCode);
}