salmar / spring-websocket-chat

Chat application using Spring WebSockets
614 stars 316 forks source link

unsubscribing from "/app/chat.participants" with stomp broker #9

Open rashtao opened 8 years ago

rashtao commented 8 years ago

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?

rashtao commented 8 years ago

And soon after receiving the error, the client gets disconnected.

danielfernandezag commented 5 years ago

hi, have you solved this yet?

qianyiliushang commented 5 years ago

Does anyone have ideas about this? I encounter this problem, too.