Skip to main content
Dec 16, 2019 4:47 PM UTC
Solved

Websocket connection to GetProperties outside of mashup

We're attempting to bind to the GetProperties websocket from a web application outside of Thingworx in the same way as we would within an mashup via the "update automatically" checkbox. Is this possible?

smainenteAnswer
Dec 20, 2019 3:37 PM UTC

The JS lib is <Thingworx>/Runtime/tw-javascript-sdk/Common/tw-javascript-sdk/tw-javascript-sdk-0.2.0.js

But I don't think it is designed to be used outside a mashup and this is not a public SDK.

4 replies

Dec 18, 2019 7:48 AM UTC

It can be tricky, the AlwaysOn Javascript SDK used by the GetProperties is not documented nor supported.

Dec 20, 2019 3:08 PM UTC

Do you have any information on it? A bit of sample code or anything?

smainenteAnswer
Dec 20, 2019 3:37 PM UTC

The JS lib is <Thingworx>/Runtime/tw-javascript-sdk/Common/tw-javascript-sdk/tw-javascript-sdk-0.2.0.js

But I don't think it is designed to be used outside a mashup and this is not a public SDK.