SignalR Client not calling Server function
<p>I have the following javascript which calls the server side signalR hub. The client code </p>

<pre><code>// A simple templating method for replacing placeholders enclosed in curly braces.
if (!String.prototype.supplant) {
    String.prototype.supplant = function (o) {
        return this.replace(/{([^{}]*)}/g,
            function (a, b) {
                var r = o[b];
                return typeof r === 'string' || typeof r === 'number' ? r : a;
            }
        );
    };
}

$(function () {

    var checker = $.connection.LyncPresenceHub,  //generated client side proxy hub
        available = 'available',
        busy = 'busy',
        $presenceTable = $('lyncPresence'),
        $presenceBody = $presenceTable.find('tbody'),
        rowTemplate = '&lt;tr data-id="{Name}"&gt;&lt;td&gt;&lt;div class="{Status}"&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;div class="{Name}"&gt;&lt;/td&gt;&lt;/tr&gt;';

    function formatPresence(lyncUser) {
        return $.extend(lyncUser, {
            Name: lyncUser.UserName,
            Status: lyncUser.Presence
        });
    }

    function init() {
        checker.server.GetAllUsers()
            .done(function (lyncUsers) {
                $presenceTable.empty();
                $.each(lyncUsers, function () {
                    var user = formatPresence(this);
                    $presenceBody.append(rowTemplate.supplant(user));
                });
            });
    }

    //Client side hub method which will be called by the server
    checker.client.updateLyncUserPresence = function (LyncUser) {
        var displayPresence = formatPresence(LyncUser);
        $row = $(rowTemplate.supplant(displayPresence));

        $presenceBody.find('tr[data-id=' + LyncUser.Name + ']')
        .replaceWith($row);
    }

    $.connection.hub.start().done(init);
});
</code></pre>

<p>The SignalR hub code (C#) is as follows</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
using Oobe.Bobs.Lync.Models;

namespace xxx  {
    [HubName("LyncPresenceHub")]
    public class LyncPresenceHub : Hub
    {
        private readonly LyncPresenceChecker _lyncpresenceChecker;

        public LyncPresenceHub() : this(LyncPresenceChecker.Instance) { }

        public LyncPresenceHub(LyncPresenceChecker checker)
        {
            _lyncpresenceChecker = checker;
        }
        public IEnumerable&lt;LyncUser&gt; GetAllUsers()
        {
            return _lyncpresenceChecker.GetAllUsers();
        }
    }
}
</code></pre>

<p>The error i get is as follows. Object does not support property or method "GetAllUsers"</p>

<p><a href="https://i.stack.imgur.com/PZSiA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PZSiA.png" alt="enter image description here"></a></p>