$(function () {
    //tasksHub = $.connection.tasksHub;


    //Begin TaskHub Function

    //$.connection.hub.start().done(function () {
    //    tasksHub.server.userRegister('Hello');
    //});



    //$.connection.hub.start();

    //var connection = $.hubConnection();
    //var TasksHubProxy = connection.createHubProxy('TasksHub');
    //TasksHubProxy.on('addContosoChatMessageToPage', function (userName, message) {
    //    console.log(userName + ' ' + message);
    //});
    //connection.start()
    //    .done(function () { console.log('Now connected, connection ID=' + connection.id); })
    //    .fail(function () { console.log('Could not connect'); });



    //tasksHub.client.UpdateUserNewTaskCount_SingnalR = function (CountOfChanges) {
    //    alert(CountOfChanges);
    //    console.log(CountOfChanges);
    //    //HomePackagesCountLabel_add('-2', CountOfChanges);

    //}
 

    //tasksHub.client.UpdateNewTaskCountEvent = function (newTaskCout) {
    //    updateCatableNewTaskCount(newTaskCout);
    //}

   // End TaskHub Function
});