publishUserTyping method
Future<void>
publishUserTyping(
- String userId, {
- MmPublishUserTypingRequest? mmPublishUserTypingRequest,
Publish a user typing websocket event.
Notify users in the given channel via websocket that the given user is typing. Minimum server version: 5.26 ##### Permissions Must have manage_system
permission to publish for any user other than oneself.
Parameters:
-
String userId (required): User GUID
-
MmPublishUserTypingRequest mmPublishUserTypingRequest:
Implementation
Future<void> publishUserTyping(
String userId, {
MmPublishUserTypingRequest? mmPublishUserTypingRequest,
}) async {
final response = await publishUserTypingWithHttpInfo(
userId,
mmPublishUserTypingRequest: mmPublishUserTypingRequest,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}