<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Websocket connection between Thingworx and a websocket-server. in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527370#M21305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maximilian, expanding on Aanjan's response yes it would involve lua for collecting and representing your remote device to the EMS - finally on to the Thingworx platform. If you have more of such devices may be it'll help running EMS and lua in Gateway scenario where you can connect multiple of those remote devices running lua scripts pointing to one EMS which in turns connect to thingworx platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's already a community blog on running EMS and lua script in Gateway mode you might want to give it a try if you haven't already- &lt;A href="https://community.thingworx.com/docs/DOC-3338"&gt;Using the Edge MicroServer and LSR in a Gateway Scenario&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 08:44:14 GMT</pubDate>
    <dc:creator>supandey</dc:creator>
    <dc:date>2016-10-12T08:44:14Z</dc:date>
    <item>
      <title>Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527361#M21296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I want to open a &lt;STRONG&gt;websocket connection&lt;/STRONG&gt; between &lt;STRONG&gt;Thingworx&lt;/STRONG&gt; and a &lt;STRONG&gt;websocket-server&lt;/STRONG&gt; for subscribing data.&lt;/P&gt;&lt;P&gt;I have seen that such services for http protocol exist in Thingworx:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var result = Resources["ContentLoaderFunctions"].LoadJSON(params);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is:&lt;/P&gt;&lt;P&gt;Is there any possibility to do almost the same via websocket communication?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for help,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:42:19 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527361#M21296</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2016-09-29T16:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527362#M21297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why aren't you just using the EMS or one of the SDKs, which handle the websocket communication for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 19:42:27 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527362#M21297</guid>
      <dc:creator>ttielebein</dc:creator>
      <dc:date>2016-09-30T19:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527363#M21298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for comment.&lt;/P&gt;&lt;P&gt;Yes I could handle the websocket communication using one of the SDKs.&lt;/P&gt;&lt;P&gt;But I thought there will be an out of the box solution for websockets in thingworx.&lt;/P&gt;&lt;P&gt;Do you know if there is any way to do this out of the box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 07:28:02 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527363#M21298</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2016-10-04T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527364#M21299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The EMS is out of the box. It only needs to be configured. Here, check out the &lt;A href="http://support.ptc.com/WCMS/files/170705/en/ThingWorx_WebSocket_based_Edge_Microserver_WSEMS_Developers_Guide_v5.3.2.pdf"&gt;Developer's Guide&lt;/A&gt; and let me know if you have further questions on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 12:20:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527364#M21299</guid>
      <dc:creator>ttielebein</dc:creator>
      <dc:date>2016-10-04T12:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527365#M21300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;So your suggestion is to write a websocket client in LUA Script to receive the data from the websocket server and then pushing the data from EMS to Thingworx?&lt;/P&gt;&lt;P&gt;Is there no way to receive the data from the websocket server in thingworx directly without using EMS or one of the SDKs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to write a service for a websocket client in Java Script like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var socket = new WebSocket(urlToWebsocketServer);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But I get the error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ReferenceError: "WebSocket" is not defined.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Because WebSocket is not defined in the Java Script Thingworx API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 13:37:40 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527365#M21300</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2016-10-05T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527366#M21301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maximilian, if you deploy the EMS on the end server, it will create a websocket connection to ThingWorx. The LuaScriptResource we provide pretty much makes REST calls via the EMS (websocket) connection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that being said, what sort of data are you trying to send/ subscribe to? The example template that's included has couple sample properties and services to test with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 13:50:31 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527366#M21301</guid>
      <dc:creator>Aanjan</dc:creator>
      <dc:date>2016-10-05T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527367#M21302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Aanjan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how Thingworx Connectivity is working. S&lt;SPAN lang="en"&gt;orry if I express myself unclear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have possibility to deploy the EMS on the end server I just want to subscribe data of an existing websocket server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My use case is:&lt;/P&gt;&lt;P&gt;I want to subscribe all data of a rotary table with drill tools etc. via websocket communication. For Example the speed of the rotary table.&lt;/P&gt;&lt;P&gt;The rotary table is more or less a black box for me. I only have the websocket server address and the communication protocoll &lt;SPAN lang="en"&gt;on which I can communicate&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;So I just want to send a JSON-Message to the Websocket Server like:&lt;/P&gt;&lt;P&gt;{"type":"readALL"}~&lt;/P&gt;&lt;P&gt;And receiving all the data the rotary table with all its components is producing.&lt;/P&gt;&lt;P&gt;This data I want to display in a Thingworx Mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the websocket protocoll is widespread and the EMS for example is creating a websocket connection to Thingworx too &lt;BR /&gt;I thought there will be a possibility to subscribe the data of a websocket directly out of thingworx?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:04:27 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527367#M21302</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2016-10-05T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527368#M21303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a possibility of accessing the server through REST calls, you can just do it directly then; using GetJSON to retrieve or PutJSON to send (part of the ContentLoaderFunctions Resource). If there is no API to hit/ access, we might need to look into leveraging lua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:49:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527368#M21303</guid>
      <dc:creator>Aanjan</dc:creator>
      <dc:date>2016-10-05T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527369#M21304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your help Aanjan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not a possibility of accessing the server through REST calls because its a websocket communication via websocket protocoll.&lt;/P&gt;&lt;P&gt;When you say "&lt;EM&gt;If there is no API to hit/ access, we might need to look into leveraging lua.&lt;/EM&gt;" do you mean to use the EMS and write a websocket client in LUA Script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 07:47:19 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527369#M21304</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2016-10-12T07:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527370#M21305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maximilian, expanding on Aanjan's response yes it would involve lua for collecting and representing your remote device to the EMS - finally on to the Thingworx platform. If you have more of such devices may be it'll help running EMS and lua in Gateway scenario where you can connect multiple of those remote devices running lua scripts pointing to one EMS which in turns connect to thingworx platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's already a community blog on running EMS and lua script in Gateway mode you might want to give it a try if you haven't already- &lt;A href="https://community.thingworx.com/docs/DOC-3338"&gt;Using the Edge MicroServer and LSR in a Gateway Scenario&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 08:44:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527370#M21305</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2016-10-12T08:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527371#M21306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exactly the same "issue" :&lt;/P&gt;&lt;P&gt;I have to connect Thingworx to a websocket server to get data from several gateways, getting data from several devices.&lt;/P&gt;&lt;P&gt;I receive data in JSON format from the device ("the thing")&amp;nbsp; and send data by sending a JSON message on the same websocket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As websocket are used internally in Thingworx I thought that there was a procedure to create a new one to connect with cloud services (which are offered more and more websockets)&lt;/P&gt;&lt;P&gt;So I would be interested by the solution .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you put a microedge server in place between the server and Thingworx ?&lt;/P&gt;&lt;P&gt;Is it "easy" to configure for such services ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 15:47:16 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527371#M21306</guid>
      <dc:creator>pjoly</dc:creator>
      <dc:date>2016-12-04T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527372#M21307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I have to disappoint you, unfortunately I have not yet begun with the implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;I will report if I have implemented it with the microedge server in place between the server and Thingworx.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 07:47:29 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527372#M21307</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2016-12-05T07:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Websocket connection between Thingworx and a websocket-server.</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527373#M21308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for the update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it should not be easier to develop an extension (java ) to achieve this task and to be able to have a websocket link inside Thingworx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have not yet developp any extension I am not sure , but the explannations for the Thingworx&amp;nbsp; Eclipse plugin&amp;nbsp; seem very detailed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 09:30:33 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Websocket-connection-between-Thingworx-and-a-websocket-server/m-p/527373#M21308</guid>
      <dc:creator>pjoly</dc:creator>
      <dc:date>2016-12-05T09:30:33Z</dc:date>
    </item>
  </channel>
</rss>

