mirror of
https://github.com/yawaflua/WebSockets.git
synced 2026-02-04 22:14:11 +02:00
Create project files
This commit is contained in:
11
yawaflua.WebSockets/Models/Interfaces/IWebSocketManager.cs
Normal file
11
yawaflua.WebSockets/Models/Interfaces/IWebSocketManager.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Linq.Expressions;
|
||||
using System.Net.WebSockets;
|
||||
|
||||
namespace yawaflua.WebSockets.Models.Interfaces;
|
||||
|
||||
public interface IWebSocketManager
|
||||
{
|
||||
public Task Broadcast(Func<IWebSocketClient, bool> selector,string message, WebSocketMessageType messageType = WebSocketMessageType.Text, CancellationToken cts = default);
|
||||
public List<IWebSocketClient> GetAllClients();
|
||||
public Task SendToUser(Guid id, string message, WebSocketMessageType messageType, CancellationToken cts);
|
||||
}
|
||||
Reference in New Issue
Block a user