Fixing chat sample - it was still using fully qualified hub method name
This commit is contained in:
parent
b977c871ae
commit
b18606ec8d
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue