Should be four hours for a regular user token.
For pubsub? No.
When the access token has expired (or close to expire)
Just use the refresh token to get a new token
Then just LISTEN (again) using the existing token. (may want to UNLISTEN first to prevent dupes/weirdness)
So no need to destory the old socket.
Or start a new socket with the new token + listen requests.
Then when that has finished connecting close the old socket.