Fixing chat sample - it was still using fully qualified hub method name

This commit is contained in:
moozzyk 2017-01-10 11:41:47 -08:00
parent b977c871ae
commit b18606ec8d
2 changed files with 2 additions and 4 deletions

View File

@ -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
{

View File

@ -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;