Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I control and manage socket events in Service Workers? #1697

Open
EhsanKey opened this issue Nov 3, 2023 · 1 comment
Open

How can I control and manage socket events in Service Workers? #1697

EhsanKey opened this issue Nov 3, 2023 · 1 comment

Comments

@EhsanKey
Copy link

EhsanKey commented Nov 3, 2023

I'm using the socket.io-client package on the client-side and the socket.io package on the server-side. I'm trying to figure out how to control and manage socket events in Service Workers. Could anyone provide guidance or insights on how to achieve this?

I've encountered certain challenges, and it would be helpful to understand best practices or code examples for handling socket events in a Service Worker environment.

Your assistance and suggestions would be greatly appreciated. Thank you!

@hanguokai
Copy link
Member

Chrome now supports WebSockets in browser extension service worker (not Web service worker). See this article https://developer.chrome.com/docs/extensions/how-to/web-platform/websockets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants