why hub object is undefined below is the code, I have owin, hub all the classes in my project, howevery am not able to call hub methods?
<!--Reference the SignalR library. -->
<script src="../scripts/jquery.signalR-2.2.1.min.js"></script>
<!--Reference the autogenerated SignalR hub script. -->
<script src="/signalr/signalr/hubs"></script>
<script type="text/javascript">
$(function () {
//why hub is not created matrixHub = undefined
var matrixHub = $.connection.MyHub;
// TODO, callbacks and hub invoker
$.connection.hub.start();
debugger;
});
</script>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>