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

Error when running #8

Open
LordoCreations opened this issue Oct 12, 2021 · 0 comments
Open

Error when running #8

LordoCreations opened this issue Oct 12, 2021 · 0 comments

Comments

@LordoCreations
Copy link

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);
    });
});

});

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