I have the following script include:
<script src="@Url.Content("~/signalr/hubs")" type="text/javascript"></script>
I have a hub class like so:
public class Dashboard : Hub, IDisconnect, IConnected
{
}
I am trying to connect to it on client side like this:
$(function () {
$.connection.Dashboard.start(function () {
});
});
but I am getting a javscript error:
TypeError: $.connection.Dashboard is undefined
What am i doing wrong?