fixed websocket issues, when a user goes to a different doc page, it will disconnect the old channel first