spring-websocket-chat
spring-websocket-chat copied to clipboard
unsubscribing from "/app/chat.participants" with stomp broker
I enabled the stomp broker (RabbitMQ), uncommenting this, but now I get the following error while trying to unsubscribe from /app/chat.participants
:
<<< ERROR
message:No subscription found
content-type:text/plain
version:1.0,1.1,1.2
content-length:92
UNSUBSCRIBE must refer to an existing subscription.
Subscription to "id='sub-2'" not found.
If I am correct, this is an error generated by RabbitMQ. So I guess that the UNSUBSCRIBE
message is forwarded to the stomp broker, but since @SubscribeMapping
does not create any subscription in the broker, I get the error.
Is some additional configuration required? Or is it a bug in the framework?
And soon after receiving the error, the client gets disconnected.
hi, have you solved this yet?
Does anyone have ideas about this? I encounter this problem, too.