listenAriaMsg method
Implementation
@override
Stream<MyNotification> listenAriaMsg({required Client client, dynamic hint}) {
final sink = RustStreamSink<MyNotification>();
unawaited(handler.executeNormal(NormalTask(
callFfi: (port_) {
final serializer = SseSerializer(generalizedFrbRustBinding);
sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockClient(
client, serializer);
sse_encode_StreamSink_my_notification_Sse(sink, serializer);
pdeCallFfi(generalizedFrbRustBinding, serializer,
funcId: 4, port: port_);
},
codec: SseCodec(
decodeSuccessData: sse_decode_unit,
decodeErrorData: sse_decode_String,
),
constMeta: kListenAriaMsgConstMeta,
argValues: [client, sink],
apiImpl: this,
hint: hint,
)));
return sink.stream;
}