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 }; 877header.Opcode = _lastReceiveHeader.Opcode; 1298header.Opcode = (MessageOpcode)(receiveBufferSpan[_receiveBufferOffset] & 0xF);
16 references to Opcode
System.Net.WebSockets (16)
System\Net\WebSockets\ManagedWebSocket.cs (16)
848NetEventSource.Trace(this, $"Next frame opcode={header.Opcode}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}"); 863if (header.Opcode == MessageOpcode.Ping || header.Opcode == MessageOpcode.Pong) 868else if (header.Opcode == MessageOpcode.Close) 875if (header.Opcode == MessageOpcode.Continuation) 877header.Opcode = _lastReceiveHeader.Opcode; 882Debug.Assert(header.Opcode == MessageOpcode.Binary || header.Opcode == MessageOpcode.Text, $"Unexpected opcode {header.Opcode}"); 890messageType: header.Opcode == MessageOpcode.Text ? WebSocketMessageType.Text : WebSocketMessageType.Binary, 973if (header.Opcode == MessageOpcode.Text && 987header.Opcode == MessageOpcode.Text ? WebSocketMessageType.Text : WebSocketMessageType.Binary, 1175bool processPing = header.Opcode == MessageOpcode.Ping; 1177bool processPong = header.Opcode == MessageOpcode.Pong && _keepAlivePingState is not null 1354switch (header.Opcode) 1399return SR.Format(SR.net_Websockets_UnknownOpcode, header.Opcode);