Aetheria/Assets/Scripts/ServerShared/Hubs/IChatHub.cs
hyperion51 a0c8dbee72 Initial Client/Server Communication
#1
Followed the MagicOnion quickstart guide, borrowing code from the chat sample app to get something working
2020-02-26 17:48:40 +00:00

25 lines
678 B
C#

using ChatApp.Shared.MessagePackObjects;
using MagicOnion;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ChatApp.Shared.Hubs
{
/// <summary>
/// Client -> Server API (Streaming)
/// </summary>
public interface IChatHub : IStreamingHub<IChatHub, IChatHubReceiver>
{
Task JoinAsync(JoinRequest request);
Task LeaveAsync();
Task SendMessageAsync(string message);
Task GenerateException(string message);
// It is not called because it is a method as a sample of arguments.
Task SampleMethod(List<int> sampleList, Dictionary<int, string> sampleDictionary);
}
}