Added Socket support
This commit is contained in:
7
DiscordBotCore/Interfaces/API/IConnectionDetails.cs
Normal file
7
DiscordBotCore/Interfaces/API/IConnectionDetails.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace DiscordBotCore.Interfaces.API;
|
||||
|
||||
public interface IConnectionDetails
|
||||
{
|
||||
public string Host { get; }
|
||||
public int Port { get; }
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using DiscordBotCore.API;
|
||||
using DiscordBotCore.Others;
|
||||
using DiscordBotCore.API.Endpoints;
|
||||
|
||||
namespace DiscordBotCore.Interfaces.API;
|
||||
|
||||
|
||||
11
DiscordBotCore/Interfaces/API/ISocket.cs
Normal file
11
DiscordBotCore/Interfaces/API/ISocket.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user