Skip to content

NodeJS Support #56

@bnap00

Description

@bnap00

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions