3 writes to Opcode
System.Net.WebSockets (3)
System\Net\WebSockets\ManagedWebSocket.cs (3)
98private MessageHeader _lastReceiveHeader = new MessageHeader { Opcode = MessageOpcode.Text, Fin = true, Processed = true }; 889header.Opcode = _lastReceiveHeader.Opcode; 1306header.Opcode = (MessageOpcode)(receiveBufferSpan[_receiveBufferOffset] & 0xF);
16 references to Opcode
System.Net.WebSockets (16)
System\Net\WebSockets\ManagedWebSocket.cs (16)
860NetEventSource.Trace(this, $"Next frame opcode={header.Opcode}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}"); 875if (header.Opcode == MessageOpcode.Ping || header.Opcode == MessageOpcode.Pong) 880else if (header.Opcode == MessageOpcode.Close) 887if (header.Opcode == MessageOpcode.Continuation) 889header.Opcode = _lastReceiveHeader.Opcode; 894Debug.Assert(header.Opcode == MessageOpcode.Binary || header.Opcode == MessageOpcode.Text, $"Unexpected opcode {header.Opcode}"); 902messageType: header.Opcode == MessageOpcode.Text ? WebSocketMessageType.Text : WebSocketMessageType.Binary, 985if (header.Opcode == MessageOpcode.Text && 999header.Opcode == MessageOpcode.Text ? WebSocketMessageType.Text : WebSocketMessageType.Binary, 1183bool processPing = header.Opcode == MessageOpcode.Ping; 1185bool processPong = header.Opcode == MessageOpcode.Pong && _keepAlivePingState is not null 1362switch (header.Opcode) 1407return SR.Format(SR.net_Websockets_UnknownOpcode, header.Opcode);