SignalR Core not generating(mapping) Client methods : <p>The SignalR Core is generating Hub proxies script, but not adding the "client" methods. <em>(No errors in server or client - only not working)</em></p>

<p>Generated JS from <code>&lt;script src="http://localhost/signalr/hubs"&gt;</code></p>

<pre><code>proxies['messageHub'] = this.createHubProxy('messageHub'); 
proxies['messageHub'].client = { };
proxies['messageHub'].server = {
        handleMessage: function (receivedString) {
            return proxies['messageHub'].invoke.apply(proxies['messageHub'], $.merge(["HandleMessage"], $.makeArray(arguments)));
         }
    };
</code></pre>

<p>Here's the Hub in Server Side:</p>

<pre><code>public class MessageHub : Hub
{
    public void HandleMessage(string receivedString)
    {
        var responseString = string.Empty;

        MessageHandler.HandleMessage(receivedString, ref responseString);

        Clients.All.sendMessage(responseString);

    }
}
</code></pre>

<p>The <strong>sendMessage</strong> methos should be included in the messageHub client proxies in the JS file.
    <em>$.connection.messageHub.client.sendMessage is undefined</em></p>

<p>Only the <strong>handleMessage</strong> for server proxies was created (and working).</p>

<p>Here's my StartUp.cs inclusions for SignalR:</p>

<p>ConfigureServices:</p>

<pre><code>services.AddMvc(options =&gt;
        {
            options.Filters.Add(new RoleFilterAttribute());
        }).AddJsonOptions(options =&gt; options.SerializerSettings.ContractResolver =
                new DefaultContractResolver());
services.AddSignalR(options =&gt; options.Hubs.EnableDetailedErrors = true)
</code></pre>

<p>Configure:</p>

<pre><code>app.UseWebSockets();
app.UseSignalR();
</code></pre>

<p>project.json:</p>

<pre><code>"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.WebSockets": "1.0.0",
"Microsoft.AspNetCore.SignalR.Server": "0.2.0-*",
</code></pre>

<p><strong>SOME ADDITIONAL TENTATIVES:</strong></p>

<p>1 - Change method case in Server Side to see if it's mapped:</p>

<pre><code>Clients.All.SendMessage(responseString);
</code></pre>

<p>Did not work!</p>

<p>2 - Change the client side to dynamic mapping:</p>

<pre><code>var connection = $.hubConnection('http://localhost/');
var proxy = connection.createHubProxy('messageHub');
connection.start({ withCredentials: false }).done(function () { console.log("CONNECTED") });
proxy.on("sendMessage", function (result) {console.log(result);});
proxy.invoke("handleMessage", msg).done(function(result)console.log(result);});
</code></pre>

<p>Again only the handleMessage (server) worked.</p>
