Update v.1.5
- New feature: Send text messages
- New state: Messages (text list)
- New event: New Message
Details
The messages are in a list of objects that includes more information about the message, like sent time and from whom.
A message looks like this:
{
"fromUser": {
"username": "John",
"userId": null,
"other_data": null,
"isHost": true
},
"time": "16:57:24",
"message": "Hello"
}
Since some fields like other data and user id are optional, they can be null (empty).
To extract any data, use the default Bubble’s feature :extract with Regex
And use a pattern like this:
"message":\s*("[^"]*"|\d+|true|false|null|\{.*?\}|\[.*?\])
Find an example of text chat integration on demo page