I have developed a python script to subscribe a WebSocket and retrieve the output stream. The output is position bus with X / Y info and the output is a json. This a snippet of code:
websocket.enableTrace(True)
ws = websocket.WebSocketApp("wss://xxxxxx/subscribe",
on_message = on_message,
on_error = on_error,
on_close = on_close)
ws.on_open = on_open
ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})
Now I would like to show this real-time data into a web map as Leaflet. Or another framework. I can do this? Any idea or example? Thanks