publishUserTyping method

Future<void> publishUserTyping(
  1. String userId, {
  2. 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:

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));
  }
}