Skip to content
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

Closed
wants to merge 3 commits into from
Closed

bbb-webhooks: add group chat, pad, presentation events #8895

wants to merge 3 commits into from

Conversation

mkuron
Copy link

@mkuron mkuron commented Mar 27, 2020

  • The public chat produces 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 the MAIN-PUBLIC-GROUP-CHAT chat ID.
  • Shared notes produce PadUpdateSysMsg events, which were neither listened for nor mapped.
  • Presentation uploads produce SetCurrentPresentationEvtMsg events, which were not mapped.

- 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.
@antobinary
Copy link
Member

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 ?

@mkuron
Copy link
Author

mkuron commented Apr 3, 2020

@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.
@mkuron
Copy link
Author

mkuron commented Apr 20, 2020

@antobinary, is there anything else you need me to do before this can be reviewed and merged?

@antobinary antobinary added this to the Release 2.3 milestone May 28, 2020
@murali-krishna-sv
Copy link

Hi @mkuron.
Can you tell me how to get the receiver info for private chat in the webhook?
Here we are getting the private messages also as GroupChatMessageBroadcastEvtMsg.
@ffdixon, @antobinary Can you please help me out.

@pedrobmarin
Copy link
Collaborator

pedrobmarin commented Aug 14, 2020

I believe you will build a webhook machine gun adding PadUpdateSysMsg to it. I strongly advise not including it to the hooks. PadUpdateSysMsg is only used to update the bottom, text only closed caption element inside the HTML5 client.

@pedrobmarin
Copy link
Collaborator

This is probably a better choice if you are interested in etherpad's updates https://github.com/citizenos/ep_webhooks

@mkuron
Copy link
Author

mkuron commented Aug 14, 2020

I believe you will build a webhook machine gun adding PadUpdateSysMsg to it. I strongly advise not including it to the hooks. PadUpdateSysMsg is only used to update the bottom, text only closed caption element inside the HTML5 client.

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.

Can you tell me how to get the receiver info for private chat in the webhook?

I have not mapped that. Look for the place where my patch uses message.sender.id, guess the right attribute and add it to the mapped message.

@pedrobmarin
Copy link
Collaborator

is surprisingly usable.

I'm fine with this then if it doesn't bring any performance issues

@MWWorks
Copy link

MWWorks commented Sep 19, 2020

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:

Can you tell me how to get the receiver info for private chat in the webhook?

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?

@workdojos
Copy link

workdojos commented Mar 15, 2021

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

@antobinary antobinary removed this from the Release 2.3 milestone Aug 4, 2021
@github-actions
Copy link

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@antobinary
Copy link
Member

@pedrobmarin could we transfer this to bigbluebutton/bbb-webhooks?

@mkuron
Copy link
Author

mkuron commented Jan 27, 2022

I have just transferred it to bigbluebutton/bbb-webhooks#5.

@mkuron mkuron closed this Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants