DEV Community

petru tirla
petru tirla

Posted on

Twilio + webSockets - can't send parameters to webSocket

Hello, guys!

I did put a question on Stack Overflow, and i don't know if it's best to only add the link to it here or to add the whole description.

I will put for the moment the link, and some of the description. If anyone has a solution, I would be forever grateful!

https://stackoverflow.com/questions/78560657/twilio-websockets-cant-send-parameters-to-websocket


I am having problems with Twilio, while trying to send parameters to a webSocket that is being called from a webhook. I am using: node.js, express, ws (JS websocket library).

The webhook is not the actual problem, since it only calls an endpoint from my end.

But in that endpoint, I am creating a VoiceResponse instance of Twilio, and using it to connect to a webSocket. In the process, I am trying to send it some parameters, because I want to access the user data (or whatever data) in the webSocket. Only that, this is not happening :))

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more