lib/chatrix/api/room_actions.rb
# Sends a message to the server informing it about a user having started
# or stopped typing.
#
# @param room [String] The affected room.
# @param user [String] The user that started or stopped typing.
# @param typing [Boolean] Whether the user is typing.
# @param duration [Fixnum] How long the user will be typing for
#   (in milliseconds).
# @return [Boolean] `true` if the message sent successfully, otherwise
#   `false`.
Sends a message to the server informing it about a user having started
or stopped typing.
Sends a message to the server informing it about a user having started or stopped typing .
def send_typing(room, user, typing = true, duration = 30_000)
        make_request(
          :put,
          "/rooms/#{room}/typing/#{user}",
          content: { typingState: { typing: typing, timeout: duration } }
        ).code == 200
      end
def send_typing ( room , user , typing = true , duration = 30_000 ) make_request ( :put , "/rooms/#{room}/typing/#{user}" , content : { typingState : { typing : typing , timeout : duration } } ) . code == 200 end
Sends a message to the server informing it about a user having started
or stopped typing.
Sends a message to the server informing it about a user having started or stopped typing .
`true` if the message sent successfully, otherwise `false`.
` true ` if the message sent successfully otherwise ` false ` .
Boolean
room
The affected room.
The affected room .
user
The user that started or stopped typing.
The user that started or stopped typing .
typing
Whether the user is typing.
Whether the user is typing .
duration
None