Skip to content

Error when running #8

Description

@LordoCreations

image

code:
const scratch = require("node-scratch-client");
// const fetch = require("node-fetch"); Commented out to improve loading times. Uncomment if needed.

console.log("Successfully initialized external server components")
console.log("Establishing connection to scratch...")

// Session validation
const Client = new scratch.Client({
username: ,
password: ,
});

// Setup
const projectID = '582530103';

console.log("Connection to servers established!")

// Session start and event loop
Client.login().then(() => {
let cloud = Client.session.createCloudSession(projectID);

cloud.connect().then(() => {
    cloud.on("set", variable => {
        console.log(variable)
        //console.log("Variable changed to " + variable.value);
    });
});

});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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