IHandler.cs 356 B

1234567891011121314
  1. using System.Net.WebSockets;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. using Microsoft.AspNetCore.Http;
  5. namespace BubbleSocketCore.Handlers
  6. {
  7. interface IHandler
  8. {
  9. Task Listen(HttpContext context, WebSocket webSocket, CancellationToken cancellationToken);
  10. bool IsListening(HttpRequest request);
  11. void AddSocket(WebSocket webSocket);
  12. }
  13. }