sendIsTyping method

  1. @override
void sendIsTyping(
  1. bool isTyping,
  2. String bareRoom
)
override

Implementation

@override
void sendIsTyping(bool isTyping, String bareRoom) {
  TypingIndicatorMessage message = TypingIndicatorMessage(
      id: const Uuid().v4(),
      type: MessageType.typing,
      isTyping: isTyping,
      roomId: bareRoom);

  String topic = bareRoom.toRoomEventsTopic;
  clientHandler.sendPayload(message.toJson().toString(), topic);
}