Module: ExpoTurbo::Rails::Cable::Connection

Defined in:
lib/expo_turbo/rails/cable/connection.rb

Instance Method Summary collapse

Instance Method Details

#expo_turbo_requestObject



7
8
9
# File 'lib/expo_turbo/rails/cable/connection.rb', line 7

def expo_turbo_request
  request
end

#expo_turbo_subjectObject



11
12
13
14
15
16
17
# File 'lib/expo_turbo/rails/cable/connection.rb', line 11

def expo_turbo_subject
  return @expo_turbo_subject if defined?(@expo_turbo_subject_resolved)

  @expo_turbo_subject = ExpoTurbo::Rails::Cable.resolve_subject(self)
  @expo_turbo_subject_resolved = true
  @expo_turbo_subject
end