-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathWebSocketFrame.cs
More file actions
44 lines (42 loc) · 1.48 KB
/
WebSocketFrame.cs
File metadata and controls
44 lines (42 loc) · 1.48 KB
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
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.Network
{
/// <summary>
/// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase
{
/// <summary>
/// WebSocket message opcode.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("opcode"), IsRequired = (true))]
public long Opcode
{
get;
set;
}
/// <summary>
/// WebSocket message mask.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("mask"), IsRequired = (true))]
public bool Mask
{
get;
set;
}
/// <summary>
/// WebSocket message payload data.
/// If the opcode is 1, this is a text message and payloadData is a UTF-8 string.
/// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("payloadData"), IsRequired = (true))]
public string PayloadData
{
get;
set;
}
}
}