// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Reactive.Linq; using System.Threading.Tasks; namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests { public class TestHub : Hub { public string HelloWorld() { return "Hello World!"; } public string Echo(string message) { return message; } public async Task CallEcho(string message) { await Clients.Client(Context.ConnectionId).InvokeAsync("Echo", message); } public IObservable Stream() { return new[] { "a", "b", "c" }.ToObservable(); } } }