Config Manager
Now you can provide custom config managers to every cloudcmd
mount point you wish 🙂.
Here is how it looks like:
const http = require('http');
const cloudcmd = require('cloudcmd');
const io = require('socket.io');
const app = require('express')();
const port = 8000;
const prefix1 = '/1';
const prefix2 = '/2';
const {createConfigManager} = cloudcmd;
const server = http.createServer(app);
const socket1 = io.listen(server, {
path: `${prefix1}/socket.io`
});
const socket2 = io.listen(server, {
path: `${prefix2}/socket.io`
});
const configManager1 = createConfigManager();
configManager1('name', '1');
const configManager2 = createConfigManager();
configManager2('name', '2');
app.use(prefix1, cloudcmd({
socket: socket1,
configManager: configManager1,
}));
app.use(prefix2, cloudcmd({
socket: socket2,
configManager: configManager2,
}));
server.listen(port);
feature
- (config-manager) add (#208)
- (package) add support of cwd in TerminalRun with help of gritty v4.7.0
- (user-menu) add ability to ignore private methods