feat: Remote Nodes Wiring & SSH Adapters

This commit is contained in:
SaelixCode
2026-03-18 12:55:30 -04:00
parent 457c9976bc
commit 8c51198468
19 changed files with 742 additions and 429 deletions
+5 -1
View File
@@ -193,7 +193,11 @@ export default function EditorLayout() {
const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const ws = new WebSocket(`${wsProtocol}//${window.location.host}`);
wsMap[container.Id] = ws;
ws.onopen = () => ws.send(JSON.stringify({ action: 'streamStats', containerId: container.Id }));
ws.onopen = () => ws.send(JSON.stringify({
action: 'streamStats',
containerId: container.Id,
nodeId: localStorage.getItem('sencho-active-node') || undefined
}));
ws.onmessage = (event) => {
try {
const data = JSON.parse(event.data);