1import ApplicationController from 'controllers/application_controller' 2import consumer from 'channels/consumer' 3 4export default class extends ApplicationController { 5 static values = { signedStreamName: String } 6 7 connect() { 8 this.subscription = consumer.subscriptions.create( 9 { channel: 'ConciergeChannel', signed_stream_name: this.signedStreamNameValue }, 10 { received: (data) => Turbo.renderStreamMessage(data) } 11 ) 12 } 13 14 disconnect() { 15 this.subscription?.unsubscribe() 16 } 17 18 answerQuestion(event) { 19 this.subscription.perform('submit_message', event.detail) 20 } 21};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.