Problem with api massage

Question:
How can I connect an API to send messages on my Wix site? I followed Wix’s example, but it didn’t work as expected.

Product:
Wix Editor

What are you trying to achieve:
I want to integrate a simple API that allows users to send messages from my website. I need to see that the real-time connection works correctly before continuing to expand on this functionality.

What have you already tried:
I followed Wix’s example without any modifications, using the exact code provided, but it didn’t work. I want to start with a simple working connection to test the system.

Additional information:
If needed, I can share the exact code I’m currently using, including collection names, column names, and other relevant details to help diagnose the issue.

Thank you in advance to anyone who can help!