How can I use Pusher Echo with SharedWorkers?

Posted 2 months ago by iamvinny

I'm trying to keep only one connection active per users who open multiple tabs on my application that uses Pusher with Laravel Echo, the example project below works just fine.

https://blog.pusher.com/reduce-websocket-connections-with-shared-workers/

https://github.com/pusher-community/pusher-with-shared-workers

But I'm having a hard time trying to adapt it to work with my Laravel project, how should I do it?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.