stomp-js / rx-stomp

STOMP adaptor for RxJS
Apache License 2.0
111 stars 21 forks source link

How to handle authentication error? #473

Closed pseisam closed 1 year ago

pseisam commented 1 year ago

How can I react to authentication errors?

There is the observable webSocketErrors$ but the only info I can get from there is type = error. But I want to know what kind of error occurred like a http status code.

I don't want to do a token refresh but to logout the user on authentication error.

Any idea?

kum-deepak commented 1 year ago

It depends on what the broker sends. It is not part of the standards so, it will be broker specific. Please check your broker's documentation.

pseisam commented 1 year ago

Thanks for the reply. Unfortunately I use springs simple broker which seems to not support better error messages after reading the docs.