I have read some SignalR tutorials. In order to implement SignalR in my existing Asp.Net solution application I did following:
I have created a separate MVC 4 project and created a Hub class along with some methods, so that it can be called from any other MVC project/Client present in the existing solution, means I would just like to use it as a service.
But now I have two questions:
How can I call it from some other MVC project. Will it be the same way as mentioned in the tutorials, example like adding necessary script files in head of my .cshtml page and using js script like following:
var hub = $.connection.; //and then
hub.server.send("some args");
I want to call Hub code also directly from the Server side code. Did it before when I was using SuperSocket. Would like to do same approach using SignalR. How can I do it ?
If you answer, then kindly please give some code sample(s). Many Thanks.