Add and use unsubscribe to pubsub and weboscket