Added Socket support

This commit is contained in:
2024-12-18 23:58:13 +02:00
parent 424bf2196f
commit c79c792c43
14 changed files with 251 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
namespace DiscordBotCore.Interfaces.API;
public interface IConnectionDetails
{
public string Host { get; }
public int Port { get; }
}

View File

@@ -1,6 +1,5 @@
using System.Threading.Tasks;
using DiscordBotCore.API;
using DiscordBotCore.Others;
using DiscordBotCore.API.Endpoints;
namespace DiscordBotCore.Interfaces.API;

View File

@@ -0,0 +1,11 @@
using System.Net.WebSockets;
using System.Threading.Tasks;
using DiscordBotCore.API.Sockets;
namespace DiscordBotCore.Interfaces.API;
internal interface ISocket
{
public string Path { get; }
public Task<SocketResponse> HandleRequest(byte[] request, int count);
}