I want to use socket.io in its extension, but when I import the library, it throws the error "Uncaught ReferenceError: document is not defined". I realized that this socket.io does document and window checks, however, in the background.js I can't use either the document API or the window object. I use manifest v3. What should I do to use sockets?