<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - trouble with socket gateway and an as3 xmlsocket connection</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_event_gateways?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 21 Sep 2010 19:56:45 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2010-09-21T19:56:45Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>trouble with socket gateway and an as3 xmlsocket connection</title>
      <link>https://forums.adobe.com/message/3151586?tstart=0#3151586</link>
      <description>&lt;!-- [DocumentBodyStart:950f4bec-7e0a-416c-9e23-bf34edd9f8d7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I succesfully set up the socket gateway and am able to conect to the CF socket gateway and send data from flash to the gateway.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The error I keep getting is when I add return value to the "onIncomingMessage"... cf error always logs "Cannot send outgoing message. OriginatorID "123124124" is not a valid socket id.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am passing the originatorID as in the docs.... my question is what is a valid originatorID?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&amp;lt;cffunction name="onIncomingMessage" output="no"&amp;gt;&lt;br/&gt;&amp;lt;cfargument name="CFEvent" type="struct" required="yes"&amp;gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&amp;lt;!--- Create a return structure that contains the message. ---&amp;gt;&lt;br/&gt; &amp;lt;!--- Get the message. ---&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;lt;cfset message="#CFEvent.Data.message#"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!--- Where did it come from? ---&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;lt;cfset orig="#CFEvent.OriginatorID#"&amp;gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;br/&gt;&amp;lt;cfset retValue = structNew()&amp;gt;&lt;br/&gt;&amp;lt;cfset retValue.OriginatorID = orig&amp;gt;&lt;br/&gt;&amp;lt;cfset retValue.MESSAGE = message&amp;gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;br/&gt;&amp;lt;!--- Send the return message back. ---&amp;gt;&lt;br/&gt;&amp;lt;cfreturn retValue&amp;gt;&lt;br/&gt;&amp;lt;/cffunction&amp;gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I really hope I can get an answer hardly any docs or anything online on how to correctly return a message via a socket gateway.&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:950f4bec-7e0a-416c-9e23-bf34edd9f8d7] --&gt;&lt;img src='/beacon?t=1415919724063' /&gt;</description>
      <pubDate>Tue, 21 Sep 2010 19:56:45 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3151586?tstart=0#3151586</guid>
      <dc:date>2010-09-21T19:56:45Z</dc:date>
      <clearspace:dateToText>4 years 2 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

