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?
BACKEND:
[HubName("testHub")]
public class testHub: Hub
{
public void testFunc()
{
Clients.Caller.Invoke("testFuncCallback");
}
}
JS:
$scope.lTestHub = $scope.$parent.signalrConnection.testHub;
$scope.lTestHub.on('testFuncCallback', function () {
alert("jo");
});
$scope.lTestHub.server.testFunc();