Skip to main content
1-Visitor
September 29, 2016
Question

Websocket connection between Thingworx and a websocket-server.

  • September 29, 2016
  • 1 reply
  • 7492 views

Hello community,

I want to open a websocket connection between Thingworx and a websocket-server for subscribing data.

I have seen that such services for http protocol exist in Thingworx:

var result = Resources["ContentLoaderFunctions"].LoadJSON(params);

So my question is:

Is there any possibility to do almost the same via websocket communication?

Thanks a lot for help,

Max

1 reply

5-Regular Member
September 30, 2016

Why aren't you just using the EMS or one of the SDKs, which handle the websocket communication for you?

mrenner1-VisitorAuthor
1-Visitor
October 4, 2016

Thanks for comment.

Yes I could handle the websocket communication using one of the SDKs.

But I thought there will be an out of the box solution for websockets in thingworx.

Do you know if there is any way to do this out of the box?

1-Visitor
December 4, 2016

Hello

I have exactly the same "issue" :

I have to connect Thingworx to a websocket server to get data from several gateways, getting data from several devices.

I receive data in JSON format from the device ("the thing")  and send data by sending a JSON message on the same websocket.

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)

So I would be interested by the solution .

Did you put a microedge server in place between the server and Thingworx ?

Is it "easy" to configure for such services ?

Thanks for information.

Regards