namespace SocketHttpListener
{
    /// 
    /// Contains the values of the opcode that indicates the type of a WebSocket frame.
    /// 
    /// 
    /// The values of the opcode are defined in
    /// Section 5.2 of RFC 6455.
    /// 
    public enum Opcode : byte
    {
        /// 
        /// Equivalent to numeric value 0.
        /// Indicates a continuation frame.
        /// 
        Cont = 0x0,
        /// 
        /// Equivalent to numeric value 1.
        /// Indicates a text frame.
        /// 
        Text = 0x1,
        /// 
        /// Equivalent to numeric value 2.
        /// Indicates a binary frame.
        /// 
        Binary = 0x2,
        /// 
        /// Equivalent to numeric value 8.
        /// Indicates a connection close frame.
        /// 
        Close = 0x8,
        /// 
        /// Equivalent to numeric value 9.
        /// Indicates a ping frame.
        /// 
        Ping = 0x9,
        /// 
        /// Equivalent to numeric value 10.
        /// Indicates a pong frame.
        /// 
        Pong = 0xa
    }
}