Module: RocketChat::Realtime::Methods::Message
- Included in:
- Client
- Defined in:
- lib/rocket_chat/realtime/methods/message.rb
Overview
Message methods
Instance Method Summary collapse
-
#send_message(room_id, message) ⇒ Object
Login into server.
Instance Method Details
#send_message(room_id, message) ⇒ Object
Login into server
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rocket_chat/realtime/methods/message.rb', line 18 def (room_id, ) method = Messages::Method.new( 'sendMessage', { rid: room_id, msg: } ) AsyncTask.start(method.id) do driver.text(method.to_json) end end |