New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bbb-webhooks: add group chat, pad, presentation events #8895
Conversation
- The public chat produce GroupChatMessageBroadcastEvtMsg events which were not listened for and have a slightly different mapping than the existing chat events. - Shared notes produce PadUpdateSysMsg events, which were neither listened for nor mapped. - Presentation uploads produce SetCurrentPresentationEvtMsg events, which were not mapped.
Hi @mkuron , Thank you for your contribution! Could you please confirm if you signed the Contributor License Agreement http://docs.bigbluebutton.org/support/faq.html#why-do-i-need-to-sign-a-contributor-license-agreement-to-contribute-source-code ? |
@antobinary, I just emailed it to @ffdixon. |
Needed to distinguish between private and group chats. The latter have an ID of MAIN-PUBLIC-GROUP-CHAT.
@antobinary, is there anything else you need me to do before this can be reviewed and merged? |
Hi @mkuron. |
I believe you will build a webhook machine gun adding |
This is probably a better choice if you are interested in etherpad's updates https://github.com/citizenos/ep_webhooks |
I see that event whenever the text in the shared notes section is edited. It indeed fires often, but is surprisingly usable. I have not looked at closed caption-related events.
I have not mapped that. Look for the place where my patch uses |
I'm fine with this then if it doesn't bring any performance issues |
I found this PR after also wanting to add webhooks for chat (in BBB 2.25) - it seems the currently caught SendPublicMessageEvtMsg and SendPrivateMessageEvtMsg do not fire at all (obsolete)? Your mods to catch GroupChatMessageBroadcastEvtMsg seem to make sense, I will try it out. But re the request from murali-krishna-sv:
This is specifically what I need to do, catch private messages to a given user. It doesn't look like this can be derived from the GroupChatMessageBroadcastEvtMsg, but GroupChatCreatedEvtMsg seems to fire when a private chat is started and contains the recipients and the chatId. So if we can also send a hook for GroupChatCreatedEvtMsg I'm thinking I can maintain the chatID/recipient at the webhook end, and then match this up when a GroupChatMessageBroadcastEvtMsg is received to see what user it is from. I can follow the code but I'm a bit of a hack at Node, would this be something you may be able to include in this patch? |
I installed BBB 2.3 today in Docker, trying to install webhooks, get the following: Unable to locate package bbb-webhooks Are webhooks not yet supported in 2.3? Thanks |
This pull request has conflicts ☹ |
@pedrobmarin could we transfer this to bigbluebutton/bbb-webhooks? |
I have just transferred it to bigbluebutton/bbb-webhooks#5. |
GroupChatMessageBroadcastEvtMsg
events which were not listened for and have a slightly different mapping than the existing chat events. They can be distinguished from private chat messages by theMAIN-PUBLIC-GROUP-CHAT
chat ID.PadUpdateSysMsg
events, which were neither listened for nor mapped.SetCurrentPresentationEvtMsg
events, which were not mapped.