Skip to content

Commit c44de3c

Browse files
committed
Minor update to STOMP chapter
Issue: SPR-16861
1 parent 9d1789e commit c44de3c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/asciidoc/web-websocket.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,9 +2110,10 @@ will typically notice the broker is not responding within 10 seconds. Clients ne
21102110
implement their own reconnect logic.
21112111
====
21122112

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:
21162117

21172118
[source,java,indent=0]
21182119
[subs="verbatim,quotes"]
@@ -2147,6 +2148,12 @@ to access information about the message.
21472148
}
21482149
----
21492150

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+
21502157

21512158

21522159
[[websocket-stomp-client]]

0 commit comments

Comments
 (0)