From b18606ec8d8b15b0d2aad60b58c682b71c06b358 Mon Sep 17 00:00:00 2001 From: moozzyk Date: Tue, 10 Jan 2017 11:41:47 -0800 Subject: [PATCH] Fixing chat sample - it was still using fully qualified hub method name --- samples/ChatSample/Hubs/Chat.cs | 4 +--- samples/ChatSample/Views/Home/Index.cshtml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/ChatSample/Hubs/Chat.cs b/samples/ChatSample/Hubs/Chat.cs index 1d8d9fa74c..4ace1387c5 100644 --- a/samples/ChatSample/Hubs/Chat.cs +++ b/samples/ChatSample/Hubs/Chat.cs @@ -2,11 +2,9 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.SignalR; namespace ChatSample.Hubs { diff --git a/samples/ChatSample/Views/Home/Index.cshtml b/samples/ChatSample/Views/Home/Index.cshtml index 686bffa382..184b705478 100644 --- a/samples/ChatSample/Views/Home/Index.cshtml +++ b/samples/ChatSample/Views/Home/Index.cshtml @@ -27,7 +27,7 @@ connection.start(); document.getElementById('sendmessage').addEventListener('submit', event => { let data = document.getElementById('new-message').value; - connection.invoke('ChatSample.Hubs.Chat.Send', data, 'json').catch(err => { + connection.invoke('Send', data, 'json').catch(err => { var child = document.createElement('li'); child.style.color = 'red'; child.innerText = err;