-
Notifications
You must be signed in to change notification settings - Fork 9.8k
/
HubProtocolConstants.cs
55 lines (45 loc) · 1.47 KB
/
HubProtocolConstants.cs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.AspNetCore.SignalR.Protocol;
/// <summary>
/// Constants related to the SignalR hub protocol.
/// </summary>
public static class HubProtocolConstants
{
/// <summary>
/// Represents the invocation message type.
/// </summary>
public const int InvocationMessageType = 1;
/// <summary>
/// Represents the stream item message type.
/// </summary>
public const int StreamItemMessageType = 2;
/// <summary>
/// Represents the completion message type.
/// </summary>
public const int CompletionMessageType = 3;
/// <summary>
/// Represents the stream invocation message type.
/// </summary>
public const int StreamInvocationMessageType = 4;
/// <summary>
/// Represents the cancel invocation message type.
/// </summary>
public const int CancelInvocationMessageType = 5;
/// <summary>
/// Represents the ping message type.
/// </summary>
public const int PingMessageType = 6;
/// <summary>
/// Represents the close message type.
/// </summary>
public const int CloseMessageType = 7;
/// <summary>
/// Represents the ack message type.
/// </summary>
public const int AckMessageType = 8;
/// <summary>
/// Represents the sequence message type.
/// </summary>
public const int SequenceMessageType = 9;
}