onDisconnect() — netty Function Reference
Architecture documentation for the onDisconnect() function in StompChatHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 81e01bd7_15ff_1fba_87da_191986d1898d["onDisconnect()"] f937e446_8aba_2036_93fc_8020adb1953f["StompChatHandler"] 81e01bd7_15ff_1fba_87da_191986d1898d -->|defined in| f937e446_8aba_2036_93fc_8020adb1953f 5ef12430_b789_c7f8_301d_8283d302e997["channelRead0()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| 81e01bd7_15ff_1fba_87da_191986d1898d style 81e01bd7_15ff_1fba_87da_191986d1898d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java lines 157–167
private static void onDisconnect(ChannelHandlerContext ctx, StompFrame inboundFrame) {
String receiptId = inboundFrame.headers().getAsString(RECEIPT);
if (receiptId == null) {
ctx.close();
return;
}
StompFrame receiptFrame = new DefaultStompFrame(StompCommand.RECEIPT);
receiptFrame.headers().set(RECEIPT_ID, receiptId);
ctx.writeAndFlush(receiptFrame).addListener(ChannelFutureListener.CLOSE);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does onDisconnect() do?
onDisconnect() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java.
Where is onDisconnect() defined?
onDisconnect() is defined in example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java at line 157.
What calls onDisconnect()?
onDisconnect() is called by 1 function(s): channelRead0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free