#1 Followed the MagicOnion quickstart guide, borrowing code from the chat sample app to get something working
16 lines
319 B
C#
16 lines
319 B
C#
using ChatApp.Shared.MessagePackObjects;
|
|
|
|
namespace ChatApp.Shared.Hubs
|
|
{
|
|
/// <summary>
|
|
/// Server -> Client API
|
|
/// </summary>
|
|
public interface IChatHubReceiver
|
|
{
|
|
void OnJoin(string name);
|
|
|
|
void OnLeave(string name);
|
|
|
|
void OnSendMessage(MessageResponse message);
|
|
}
|
|
}
|