startTyping method

void startTyping()

Sends start typing event.

Implementation

void startTyping() {
  sbLog.i(StackTrace.current);

  final now = DateTime.now().millisecondsSinceEpoch;
  if (now - _lastStartTypingTimestamp >
      chat.chatContext.options.typingIndicatorThrottle) {
    final cmd = Command.buildStartTyping(channelUrl, now);
    chat.commandManager.sendCommand(cmd);
    _lastStartTypingTimestamp = now;
    _lastEndTypingTimestamp = 0;
  }
}