Hi, I have a backend application written in python+flask_socketio.
I connect with this backend with “websocket” (not regular simple TCP socket).
without line 29:"windows.locaion=skp:xxxxxx
Sending and Receiving worked perfectly.
I suspect after window.location=skp:xxxxx, the page reloads and all instances are changed. however, when I print out the socket.id prior and after ‘window.location=skp:xxxxx’, they are the same.
even more, if I type ‘window.location=skp:xxxxx’ from the html console manually, not only can I trigger the skp function correctly, but also when I send to the socket again, I can still get the correct response.
1 what is the proper way to drive sketchup with websocket messages?
2 can I connet websocket in ruby asynchronously?