@Donna I think there might be a documentation error in the Websockets introduction. I started at the very beginning (docs.mistyrobotics.com) during my onboarding. Successfully did so and got down to the part where it talks about “Writing Skills”. In that section there’s a part about websockets and an example for ToFs.
In the sample code, the first section describes how to construct the “subscribe” message. At the bottom of that sample snippet, there are two JSON objects created one called “subMsg” and one called “unsubMsg”.
Further down in the description, it talks about opening, subscribing, unsubscribing and closing websockets for the ToFs. There’s a line where it says “socket.send(message)” – but “message” seems to be an undefined variable. Further down in the code, where it describes unsubscribing, it passes “unsubMsg” (the JSON object from above?). That leads me to wonder whether the variable “message” should really be the “subMsg” JSON object from the snippet above. True? Or am I missing something about where the variable “message” is defined?