demo/chat/frontend/src/channelstream-demo/app-views/chat-view/chat-view.js
/** sends the signal that will pass the message to the
     * channelstream-connection element */
sends the signal that will pass the message to the
channelstream-connection element
sends the signal that will pass the message to the channelstream - connection element
messageSend(event) {
        event.preventDefault();
        let msgForm = this.shadowRoot.querySelector('#message-form');
        let formData = msgForm.serializeForm();
        this.dispatchEvent(new CustomEvent('message-send',
            {
                detail: {
                    message: {
                        text: formData.message,
                        email: this.user.email,
                    },
                    channel: this.selectedChannel,
                    user: this.user.username,
                },
                composed: true, bubbles: true
            }));
        this.shadowRoot.querySelector('#message-form paper-input').value = '';
    }
messageSend ( event ) { event . preventDefault ( ) ; let msgForm = this . shadowRoot . querySelector ( '#message-form' ) ; let formData = msgForm . serializeForm ( ) ; this . dispatchEvent ( new CustomEvent ( 'message-send' , { detail : { message : { text : formData . message , email : this . user . email , } , channel : this . selectedChannel , user : this . user . username , } , composed : true , bubbles : true } ) ) ; this . shadowRoot . querySelector ( '#message-form paper-input' ) . value = '' ; }
sends the signal that will pass the message to the
 channelstream-connection element
sends the signal that will pass the message to the channelstream - connection element