Added reference project
This commit is contained in:
22
ref/Net/WebSockets/WebSocket.cs
Normal file
22
ref/Net/WebSockets/WebSocket.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Discord.Logging;
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
namespace Discord.Net.WebSockets
|
||||
{
|
||||
public abstract partial class WebSocket
|
||||
{
|
||||
public CancellationToken CancelToken { get; }
|
||||
public ConnectionState State { get; }
|
||||
public string Host { get; }
|
||||
|
||||
public event EventHandler Connected = delegate { };
|
||||
public event EventHandler<DisconnectedEventArgs> Disconnected = delegate { };
|
||||
|
||||
public WebSocket(DiscordConfig config, ILogger logger) { }
|
||||
|
||||
public abstract void SendHeartbeat();
|
||||
|
||||
public virtual void WaitForConnection(CancellationToken cancelToken) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user