stream<T> method
Future<XRPCResponse<Subscription<T> > >
stream<T>(
- NSID methodId, {
- String? service,
- Map<
String, dynamic> ? parameters, - ResponseDataBuilder<
T> ? to, - ResponseDataAdaptor? adaptor,
- WebSocketChannelFactory? channelFactory,
Implementation
Future<xrpc.XRPCResponse<xrpc.Subscription<T>>> stream<T>(
final NSID methodId, {
final String? service,
final Map<String, dynamic>? parameters,
final xrpc.ResponseDataBuilder<T>? to,
final xrpc.ResponseDataAdaptor? adaptor,
final xrpc.WebSocketChannelFactory? channelFactory,
}) async => await _challenge.execute(
() async => xrpc.subscribe(
methodId,
protocol: _protocol,
service: service ?? relayService,
parameters: parameters,
to: to,
adaptor: adaptor,
channelFactory: channelFactory,
),
isProcedure: false,
nsid: methodId.toString(),
);