maintain a realtime connection between VC and a webbrowser

Interesting. If you search “TCP/IP”, “UDP”, you might find something. Here is example.

I think there is also a snippet in the Python editor in VC to quickly insert code for the connection.