File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2110,9 +2110,10 @@ will typically notice the broker is not responding within 10 seconds. Clients ne
2110
2110
implement their own reconnect logic.
2111
2111
====
2112
2112
2113
- Furthermore, an application can directly intercept every incoming and outgoing message by
2114
- registering a `ChannelInterceptor` on the respective message channel. For example
2115
- to intercept inbound messages:
2113
+ The above events reflect points in the lifecycle of a STOMP connection. They're not meant
2114
+ to provide notification for every message sent from the client. Instead an application
2115
+ can register a `ChannelInterceptor` to intercept every incoming and outgoing STOMP message.
2116
+ For example to intercept inbound messages:
2116
2117
2117
2118
[source,java,indent=0]
2118
2119
[subs="verbatim,quotes"]
@@ -2147,6 +2148,12 @@ to access information about the message.
2147
2148
}
2148
2149
----
2149
2150
2151
+ Note that just like with the `SesionDisconnectEvent` above, a DISCONNECT message
2152
+ may have been sent from the client, or it may also be automatically generated when
2153
+ the WebSocket session is closed. In some cases an interceptor may intercept this
2154
+ message more than once per session. Components should be idempotent with regard to
2155
+ multiple disconnect events.
2156
+
2150
2157
2151
2158
2152
2159
[[websocket-stomp-client]]
You can’t perform that action at this time.
0 commit comments