Module: RocketChat::Realtime::Subscriptions::Room
- Included in:
- Client
- Defined in:
- lib/rocket_chat/realtime/subscriptions/room.rb
Overview
Room Subscriptions
Instance Method Summary collapse
-
#subscribe_room_messages(room_id) ⇒ Object
Subscribe to room messages.
Instance Method Details
#subscribe_room_messages(room_id) ⇒ Object
Subscribe to room messages
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rocket_chat/realtime/subscriptions/room.rb', line 17 def (room_id) subscription = Messages::Subscribe.new( 'stream-room-messages', room_id, false ) AsyncTask.start(subscription.id) do driver.text(subscription.to_json) end end |