I can give you an example with firebase, but you can build your own. First, go create some realtime database, then go to project settings and near the bottom there will be some config data:"..A websocket running from a web browser control.."
I don't understand exactly what you mean
Can you give me some links/examples/documentation to study and follow?
Paste that in the VBA code:
Code:
Private Sub firebaseScript_onreadystatechange()
If firebaseScript.ReadyState = "complete" Then
doc.parentWindow.Document.parentWindow.execScript _
"firebase.initializeApp({" & _
" apiKey: 'apiKey'," & _
" authDomain: 'authDomain'," & _
" databaseURL: 'databaseURL'," & _
" projectId: 'projectId'," & _
" storageBucket: 'storageBucket'," & _
" messagingSenderId: 'messagingSenderId'" & _
"});" & _
"firebase.database().ref('/YourNodeName').on('value', function(snapshot) {" & _
" var data = snapshot.val();" & _
" document.getElementById('listenerInput').value = JSON.stringify(data);" & _
" document.title = JSON.stringify(data);" & _
"});"
End If
End Sub
In your realtime database, add a node, in the js code above, the node is called YourNodeName, but you can name it yourself. Finally, make sure you enable IE11 emulation, its a registry key.
The rest is done by the app. You can see it in action by simply modifying the value of YourNodeName. The changes will be reflected in real time. The benefit of that is being able to capture those changes, I added two possibilities to this example:
1. Detect property change in listener input
2. Detect document title change
The most important part, these changes will reflect in any frontend where the web browser object is open.