0

I am trying to create a chrome extension which will use nodejs as server. But chrome extensions don't allow me to use the require keyword.

I tried implementing websockets using socket-io in service worker script of extensions

  • You can use `fetch` or WebSocket explicitly without socket-io. If you want socket-io you can do it inside the [offscreen document](https://developer.chrome.com/docs/extensions/reference/offscreen/). – wOxxOm Mar 08 '23 at 14:03

0 Answers0