I am developing one simple extension in which I want to show RealTime data which is sending from my server through web socket connection.
I am using chrome's manifest v3 for that. I try to connect my extension with web socket through background.js which is run on background of chrome as a service worker.
we can't access window object in service worker JS(background.js) and even can't add more script in background JS. I was reading about it from last one week and still not find any solution.
does anyone know , how to connect web socket in service worker jS(background.js) so that, server can send data to the extension.
Any small help would be great helpful for me. please help me.