-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOpcode.cs
More file actions
33 lines (29 loc) · 751 Bytes
/
Opcode.cs
File metadata and controls
33 lines (29 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
}
}