If installed on a NodeJS server, this gives an error of window undefined.
There is a simple fix to it (if this does not get merged, as it seems to be inactive repo)
Use my fork to install using any of the following commands
yarn add bnap00/socket.io-p2p
npm install bnap00/socket.io-p2p
Create a fork of the repo and add the following lines to the index.js
If installed on a NodeJS server, this gives an error of
window undefined
. There is a simple fix to it (if this does not get merged, as it seems to be inactive repo)index.js