You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
252 B

7 years ago
  1. class PublicChannel < ApplicationCable::Channel
  2. def subscribed
  3. stream_from 'timeline:public', lambda { |encoded_message|
  4. status, message = hydrate_status(encoded_message)
  5. next if filter?(status)
  6. transmit message
  7. }
  8. end
  9. end