BotSharp/src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs

13 lines
371 B
C#
Raw Normal View History

2025-02-07 22:40:57 +00:00
using BotSharp.Abstraction.Realtime.Models;
using System.Net.WebSockets;
namespace BotSharp.Abstraction.Realtime;
/// <summary>
/// Realtime hub interface. Manage the WebSocket connection include User, Agent and Model.
/// </summary>
public interface IRealtimeHub
{
Task Listen(WebSocket userWebSocket, Func<string, RealtimeHubConnection> onUserMessageReceived);
}