mirror of
https://github.com/yawaflua/WebSockets.git
synced 2025-12-16 01:46:19 +02:00
Create project files
This commit is contained in:
16
yawaflua.WebSockets/Models/Abstracts/WebSocketController.cs
Normal file
16
yawaflua.WebSockets/Models/Abstracts/WebSocketController.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using yawaflua.WebSockets.Core;
|
||||
using yawaflua.WebSockets.Models.Interfaces;
|
||||
using WebSocketManager = yawaflua.WebSockets.Core.WebSocketManager;
|
||||
|
||||
namespace yawaflua.WebSockets.Models.Abstracts;
|
||||
|
||||
public abstract class WebSocketController : IWebSocketController
|
||||
{
|
||||
public IWebSocketManager WebSocketManager => new WebSocketManager();
|
||||
|
||||
public virtual Task OnMessageAsync(WebSocket webSocket, HttpContext httpContext)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user