I'm using the following java script code as client to show real time data in my website
const socket = io('https://mysocketio.com/', {
timeout: 2000,
forceNew: true,
path: '/socket/',
query: {
token: "AbcD"
},
transports: ['websocket'],
reconnection: true
});
socket.on('connect', function () {
alert('connected');
});
socket.on('change', function (liveData) {
// live data processing
});
socket.on('disconnect', function () {
alert('disconnect');
});
The above code is working fine. Now my client wants to do the same in desktop application too. So please help me to show real time data in to desktop application using C# or VB as client code.
Thanks a lot.