feat: websocket

This commit is contained in:
2022-10-22 21:34:35 +04:00
parent b9e79af9d8
commit b7e8327ca8
27 changed files with 312 additions and 181 deletions
+12
View File
@@ -0,0 +1,12 @@
using System;
using System.Threading.Tasks;
namespace Ragon.Core;
public interface IApplicationHandler
{
Task OnAuthorizationRequest(string key, string playerName, byte[] additionalData, Action<string, string> Accept, Action<uint> Reject);
public void OnCustomEvent(ushort peerId, ReadOnlySpan<byte> payload);
public void OnJoin(ushort peerId);
public void OnLeave(ushort peerId);
}