signal method
inherited
Publishes signal message
to a channel
.
Implementation
Future<SignalResult> signal(String channel, dynamic message,
{String? customMessageType, Keyset? keyset, String? using}) async {
keyset ??= keysets[using];
Ensure(keyset.publishKey).isNotNull('publishKey');
var payload = await super.parser.encode(message);
var params = SignalParams(keyset, channel, payload,
customMessageType: customMessageType);
return defaultFlow(
keyset: keyset,
core: this,
params: params,
serialize: (object, [_]) => SignalResult.fromJson(object));
}