Initial sanitized SmartSpeaker snapshot

This commit is contained in:
ben
2026-07-13 21:13:19 -07:00
commit ac26dcc238
66 changed files with 11438 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
const WebSocket = require('ws');
const url = process.env.WS_URL || 'ws://localhost:8901';
console.log(`[Test Client] Attempting connection to ${url}...`);
const ws = new WebSocket(url);
ws.on('open', () => {
console.log('[Test Client] Connected successfully!');
// Send test packet
const payload = JSON.stringify({
type: 'test_connection',
sender: 'Node.js Test Client',
timestamp: new Date()
});
ws.send(payload);
console.log(`[Test Client] Sent payload: ${payload}`);
});
ws.on('message', (data) => {
console.log(`[Test Client] Received from server: ${data}`);
});
ws.on('close', (code, reason) => {
console.log(`[Test Client] Connection closed. Code: ${code}, Reason: ${reason || 'None'}`);
});
ws.on('error', (err) => {
console.error('[Test Client] WebSocket error:', err.message || err);
});