withCipherKey static method

Future<RealtimeChannelOptions> withCipherKey(
  1. dynamic key
)

Constructor withCipherKey, that only takes a private key used to encrypt and decrypt payloads.

Implementation

static Future<RealtimeChannelOptions> withCipherKey(dynamic key) async {
  final cipherParams = await Crypto.getDefaultParams(key: key);
  return RealtimeChannelOptions(cipherParams: cipherParams);
}