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;