withCipherKey static method
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);
}