How to store the messages from data channel? #5300
-
How can you store the messages from the data channel in Mongodb? |
Beta Was this translation helpful? Give feedback.
Answered by
timantmedia
Jun 27, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mekya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an application setting
dataChannelWebHookURL
which will relay all data channel messages to the webhook URL that is defined.The messages will only start getting sent once there is more than one connection on the live stream, for example, 2+ data channel only connections on a live stream or 1 broadcaster and 1+ viewer on a live stream. Otherwise, nothing is sent.
Images that are sent in the data channel are relayed as binary parts, so a single image may send multiple binary messages as you can see in the following screenshot:
Here is an example POST request sending a text message through the data channel:
Here is the setting that has been configured in the application settings f…