<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: petru tirla</title>
    <description>The latest articles on Forem by petru tirla (@petru_tirla_b4fcd50d0407d).</description>
    <link>https://forem.com/petru_tirla_b4fcd50d0407d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1556129%2Fb08fb17a-7c77-4718-8444-9f37b09cf223.png</url>
      <title>Forem: petru tirla</title>
      <link>https://forem.com/petru_tirla_b4fcd50d0407d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/petru_tirla_b4fcd50d0407d"/>
    <language>en</language>
    <item>
      <title>Twilio + webSockets - can't send parameters to webSocket</title>
      <dc:creator>petru tirla</dc:creator>
      <pubDate>Fri, 31 May 2024 17:13:49 +0000</pubDate>
      <link>https://forem.com/petru_tirla_b4fcd50d0407d/twilio-websockets-cant-send-parameters-to-websocket-l2n</link>
      <guid>https://forem.com/petru_tirla_b4fcd50d0407d/twilio-websockets-cant-send-parameters-to-websocket-l2n</guid>
      <description>&lt;p&gt;Hello, guys!&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I will put for the moment the link, and some of the description. If anyone has a solution, I would be forever grateful!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/78560657/twilio-websockets-cant-send-parameters-to-websocket"&gt;https://stackoverflow.com/questions/78560657/twilio-websockets-cant-send-parameters-to-websocket&lt;/a&gt;&lt;/p&gt;




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

&lt;p&gt;The webhook is not the actual problem, since it only calls an endpoint from my end.&lt;/p&gt;

&lt;p&gt;But in that endpoint, I am creating a &lt;code&gt;VoiceResponse&lt;/code&gt; 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 :))&lt;/p&gt;

</description>
      <category>twilio</category>
      <category>websocket</category>
      <category>ws</category>
    </item>
  </channel>
</rss>
