Hi fellow programmers,
I am using Twitter Streaming API to search for tweets containing specific keywords. My requirement is to build a user interface which will show the tweets to the user of my system just like Twitter i.e. in real time. As soon as a tweet is received from the streaming API i want it to be displayed on the UI without the need of manual page refresh. Any ideas how to achieve this? I want a solution which should be ASP.NET compatible. Thanks in advance.
Hi you will want to use SignalR. It is an .NET library that give you the ability to push from the server. It uses WebSocket for compatible browsers and fallback to polling for old browsers.
You will simply have to create a hub and then call Clients.sendMessage()
.