We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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); }); });
});
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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);
});
The text was updated successfully, but these errors were encountered: