-
Notifications
You must be signed in to change notification settings - Fork 9.9k
/
HubProtocolConstants.cs
46 lines (39 loc) · 1.36 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
// 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;
}
}