PubSub: ERR_BADAUTH even if scope is ok

Did you use a user access token or a app access token?

The pubsub topics require a user access token.

response_type=code

This suggests you got an app access token in error. You need a token that represents the user/broadcast you wish to get events for