mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-07-12 06:29:14 +00:00
First commit
This commit is contained in:
33
DiscordAPI/IO/Opcode.cs
Normal file
33
DiscordAPI/IO/Opcode.cs
Normal file
@ -0,0 +1,33 @@
|
||||
namespace DiscordRPC.IO
|
||||
{
|
||||
/// <summary>
|
||||
/// The operation code that the <see cref="PipeFrame"/> was sent under. This defines the type of frame and the data to expect.
|
||||
/// </summary>
|
||||
public enum Opcode : uint
|
||||
{
|
||||
/// <summary>
|
||||
/// Initial handshake frame
|
||||
/// </summary>
|
||||
Handshake = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Generic message frame
|
||||
/// </summary>
|
||||
Frame = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Discord has closed the connection
|
||||
/// </summary>
|
||||
Close = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Ping frame (not used?)
|
||||
/// </summary>
|
||||
Ping = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Pong frame (not used?)
|
||||
/// </summary>
|
||||
Pong = 4
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user