Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I can successfully call testFunc() on my server. But the Invoke simply never gets to my testFuncCallback() function. Since I can call the server, the connection appears to be fine.
Any idea what's going on?


[HubName("testHub")]
public class testHub: Hub
{
    public void testFunc()
    {
        Clients.Caller.Invoke("testFuncCallback");
    }
}


$scope.lTestHub = $scope.$parent.signalrConnection.testHub;
$scope.lTestHub.on('testFuncCallback', function () {
    alert("jo");
});
$scope.lTestHub.server.testFunc();
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900