pullMessages method
Future<DynamiteResponse<SignalingPullMessagesResponseApplicationJson, void> >
pullMessages({
- required String token,
- SignalingPullMessagesApiVersion? apiVersion,
- bool? oCSAPIRequest,
Get signaling messages.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
apiVersion
Defaults tov3
.token
Token of the room.oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: Signaling messages returned
- 404: Session, room or participant not found
- 409: Session killed
- 400: Getting signaling messages is not possible
See:
- pullMessagesRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<SignalingPullMessagesResponseApplicationJson, void>> pullMessages({
required String token,
SignalingPullMessagesApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = pullMessagesRaw(
token: token,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}