Server unsubscribes websocket listeners when they are closed