Just keep in mind that tokens gained through the Implicit auth flow can not be refreshed, meaning every time the token expires you’ll have to actually go through the auth process again.
If you use the Authorization Code Flow you’ll be able to programmatically refresh your access token to get a new one, so whenever you need to reconnect to pubsub you’ll have a valid access token rather than an expired one.