예제 #1
0
 /// <summary>
 /// Web socket frame structure.
 /// </summary>
 /// <param name="opcode">Represents the frame type of the WebSocket frame as defined in section 11.8 of the WebSocket protocol spec.</param>
 /// <param name="payloadData">The payload.</param>
 /// <param name="mask">True if masked.</param>
 public Frame(OpCodeFrame opcode, Payload payloadData, bool mask)
     : this(Fin.Final, opcode, payloadData, false, mask)
 {
 }
예제 #2
0
 /// <summary>
 /// Create the close frame.
 /// </summary>
 /// <param name="payloadData">The payload.</param>
 /// <param name="mask">True if masked.</param>
 /// <returns>The web socket frame.</returns>
 public static Frame CreateCloseFrame(Payload payloadData, bool mask)
 {
     return(new Frame(Fin.Final, OpCodeFrame.Close, payloadData, false, mask));
 }