testPingFrame() — netty Function Reference
Architecture documentation for the testPingFrame() function in WebSocketProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a3634ff6_140e_5910_7de6_81d98b0fb9f8["testPingFrame()"] 4e6acdd6_0a1b_2423_42e3_58c47c3a2cd5["WebSocketProtocolHandlerTest"] a3634ff6_140e_5910_7de6_81d98b0fb9f8 -->|defined in| 4e6acdd6_0a1b_2423_42e3_58c47c3a2cd5 style a3634ff6_140e_5910_7de6_81d98b0fb9f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandlerTest.java lines 44–58
@Test
public void testPingFrame() {
ByteBuf pingData = Unpooled.copiedBuffer("Hello, world", UTF_8);
EmbeddedChannel channel = new EmbeddedChannel(new WebSocketProtocolHandler() { });
PingWebSocketFrame inputMessage = new PingWebSocketFrame(pingData);
assertFalse(channel.writeInbound(inputMessage)); // the message was not propagated inbound
// a Pong frame was written to the channel
PongWebSocketFrame response = channel.readOutbound();
assertEquals(pingData, response.content());
pingData.release();
assertFalse(channel.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testPingFrame() do?
testPingFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandlerTest.java.
Where is testPingFrame() defined?
testPingFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandlerTest.java at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free