I'm using BBB and have a custom javascript script executed. I want to use the public chat to log when users leave the page and come back.
As I don't understand which function needs to be called to send a message I'm trying to use the chat html elements. First I add a message to the text area:
document.getElementById('message-input').value="my message";Then I try to send the message:
document.getElementById('message-input').dispatchEvent( new KeyboardEvent('keydown', { bubbles: true, cancelable: true, keyCode: 13 }) );But the message isn't sent. I tried to send input and change message before sending but that doesn't work:
document.getElementById('message-input').dispatchEvent( new Event('input')); document.getElementById('message-input').dispatchEvent( new Event('change'));--
You received this message because you are subscribed to a topic in the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bigbluebutton-dev/Dyr6Z5Dg48E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/72680f9e-11d1-4de1-8c91-2cbdeca28e6fn%40googlegroups.com.