[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();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)