Skip to main content
1-Visitor
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
16-Pearl

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

16-Pearl

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

Translate
1-Visitor

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

Translate
smainente16-PearlAnswer
16-Pearl

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.

Translate