On logout, you should probably use native browser navigation so that the websocket connection and any other state gets reloaded in an unauthenticated state.
You should perform navigation using JS Interop probably. See window.location API Docs if you need details.
Something like:
(-> js/document
(.-location)
(.assign "/"))
Should work.