put stuff in same folder
npm install [email protected] bluebird
then run siotest.js
Should first error and then connect
| [07:24:19.570] Log Level: 2 | |
| [07:24:19.576] VS Code version: 1.86.2 | |
| [07:24:19.576] Remote-SSH version: [email protected] | |
| [07:24:19.576] darwin arm64 | |
| [07:24:19.577] SSH Resolver called for "ssh-remote+my-secret-host.example.com", attempt 1 | |
| [07:24:19.577] "remote.SSH.useLocalServer": true | |
| [07:24:19.577] "remote.SSH.useExecServer": false | |
| [07:24:19.578] "remote.SSH.path": undefined | |
| [07:24:19.578] "remote.SSH.configFile": undefined | |
| [07:24:19.578] "remote.SSH.useFlock": true |
| var ws = require("ws"); | |
| var sock = new ws("wss://beam.pro/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_sdk_platform=node&__sails_io_sdk_language=javascript&EIO=3&transport=websocket", { | |
| headers: { | |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.81 Safari/537.36' | |
| } | |
| }); | |
| sock.on("open", function() { | |
| setInterval(function() { |
put stuff in same folder
npm install [email protected] bluebird
then run siotest.js
Should first error and then connect
| // YOU NEED NODE.JS TO RUN THIS | |
| // Please run the following command first: npm install ws readline request tough-cookie | |
| // Then run the program with: node filename.js | |
| var WebSocket = require('ws'); | |
| var readline = require('readline'); | |
| var request = require('request'); | |
| // Various options | |
| var options = { |
I hereby claim:
To claim this, I am signing this object:
| module.exports = function (compound) { | |
| compound.models.Servertype.all(function (err, servertypes) { | |
| compound.routeMapper.namespace('scpad', function (scpad) { | |
| servertypes.forEach(function (servertype) { | |
| console.log(servertype); | |
| compound.models.Addon.all({where: {servertype: servertype.id}}, function (err, addons) { | |
| console.log(addons); |