Class: Superglue::StreamsChannel

Inherits:
ActionCable::Channel::Base
  • Object
show all
Extended by:
Superglue::Streams::Broadcasts, Superglue::Streams::StreamName
Includes:
Superglue::Streams::StreamName::ClassMethods
Defined in:
app/channels/superglue/streams_channel.rb

Overview

This file was ported from the amazing folks at turbo-rails You can find its MIT License here: github.com/hotwired/turbo-rails/blob/main/MIT-LICENSE

Instance Method Summary collapse

Instance Method Details

#subscribedObject



9
10
11
12
13
14
15
# File 'app/channels/superglue/streams_channel.rb', line 9

def subscribed
  if stream_name = verified_stream_name_from_params
    stream_from stream_name
  else
    reject
  end
end