Module: Superglue::Streams::StreamName

Included in:
Superglue::StreamsChannel
Defined in:
app/channels/superglue/streams/stream_name.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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#signed_stream_name(streamables) ⇒ Object



9
10
11
# File 'app/channels/superglue/streams/stream_name.rb', line 9

def signed_stream_name(streamables)
  Superglue.signed_stream_verifier.generate stream_name_from(streamables)
end

#verified_stream_name(signed_stream_name) ⇒ Object



5
6
7
# File 'app/channels/superglue/streams/stream_name.rb', line 5

def verified_stream_name(signed_stream_name)
  Superglue.signed_stream_verifier.verified signed_stream_name
end