Skip to main content
1-Visitor
February 9, 2016
Question

Websockets and Thingworx

  • February 9, 2016
  • 1 reply
  • 3140 views

Hi,

Is there anyway where Thingworx server can subscribe to a device through websocket and can receive push notifications from the device?

1 reply

12-Amethyst
February 9, 2016

All of the ThingWorx SDKs (C,Java & .net) create web sockets and push data to ThingWorx through them from your device to the server.Look in the market place to download one of these. Here is a link to the Java SDK. ThingWorx IoT Marketplace » Java SDK

jmehta1-VisitorAuthor
1-Visitor
February 11, 2016

Thanks. What i want is to write an application that communicates with devices through websockets and then based on the response of devices i would like to populate datatable or call a service. I am not sure if i can do it through extensions and port the application on server itself.

1-Visitor
February 11, 2016

By application are you referring to a mashup?  Mashups cannot communicate with a device directly, but can interact with a Thing representing the device.  Thingworx already uses websockets to communicate with devices and can expose services on the device through the Thing so that mashups can invoke them.