I created a simple test app to reproduce a problem I\'m having in my main app.
I have the following hub class:
[HubName(\"testHub\")] public class Te
You're using the wrong syntax:
var tHub; $(document).ready(function () { tHub = $.connection.testHub; tHub.client.notify = function (msg) { alert(msg); } $.connection.hub.start().done(function () { tHub.server.runMe(); }); });
Notice the .client property on the hub to register the callback.