Skip to content

Commit

Permalink
More UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akhatua2 committed Nov 22, 2024
1 parent cf1623c commit c113227
Show file tree
Hide file tree
Showing 23 changed files with 751 additions and 1,099 deletions.
22 changes: 0 additions & 22 deletions examples/experimental/nodes/frontend/components.json

This file was deleted.

6 changes: 0 additions & 6 deletions examples/experimental/nodes/frontend/lib/utils.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,30 @@ redisClient.on('error', (err) => {
});
})();


io.on('connection', (socket) => {
console.log('A user connected');

socket.on('terminal_command', async (command) => {
console.log(`Received command: ${command}`);
// try {
// await redisClient.publish('TerminalChannel', command); // Publish to a Redis channel
// } catch (err) {
// console.error('Error publishing to Redis:', err);
// }
});

socket.on('disconnect', () => {
console.log('A user disconnected');
});
});

// Serve the index.html file
app.get('/', (req, res) => {
res.sendFile(__dirname + '/frontend/public/index.html');
});

// Start the server
server.listen(3000, () => {
console.log('Server is running on http://localhost:3000');
server.listen(8000, () => {
console.log('Server is running on http://localhost:8000');
});
Loading

0 comments on commit c113227

Please sign in to comment.