sendMulticast method

Stream<CoapResponse> sendMulticast(
  1. CoapRequest request
)

Sends a request and returns a Stream of CoapResponses.

This method is especially useful for multicast scenarios, allowing the caller to asynchronously iterate over incoming responses. However, you can also use it for obtaining the response to a unicast requests as a Stream.

Implementation

Stream<CoapResponse> sendMulticast(final CoapRequest request) async* {
  yield* _sendWithStreamResponse(request);
}