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

NodeJS Support #56

Open
bnap00 opened this issue Jul 4, 2019 · 0 comments
Open

NodeJS Support #56

bnap00 opened this issue Jul 4, 2019 · 0 comments

Comments

@bnap00
Copy link

bnap00 commented Jul 4, 2019

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(window){
if ('undefined' != typeof window) {
  window.myDebug = require('debug')
}
  • Or just go to your nodemodules and add the above line(not recommended at all, good for testing purposes)
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

1 participant