Skip to content

Running as node.js server #16

@EibrielInv

Description

@EibrielInv

Hi!

I'm looking to run the library on Node for the server of a game, but I'm running with issues: self or document not defined on lines 189 and 191

I'm not able to set the correct combination of ENVIRONMENT variables :

// Determine the runtime environment we are in. You can customize this by
// setting the ENVIRONMENT setting at compile time (see settings.js).

var ENVIRONMENT_IS_WEB = false;
var ENVIRONMENT_IS_WORKER = false;
var ENVIRONMENT_IS_NODE = true;
var ENVIRONMENT_IS_SHELL = false;

What should I do to run the library on a Node script, in the command line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions