publishUserTypingWithHttpInfo method

Future<Response> publishUserTypingWithHttpInfo(
  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.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> publishUserTypingWithHttpInfo(
  String userId, {
  MmPublishUserTypingRequest? mmPublishUserTypingRequest,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/typing'.replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody = mmPublishUserTypingRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}