How to fix late PubSub message in Extension

I think it’s related to having the listener inside the onAuthorized method. Also performed some improvements on the EBS and now the issue is fixed.

Now the messages from a client to the Extension take around 500ms to 1s!

Thanks!