Skip to main content
100%

Node.js + Socket.io + Bash. A collaborative terminal for your browser.

✓ Published0🌍 Public
Aackuser
Last edited May 8, 2011
Created on Jul 3, 2017

This example demonstrates a collaborative terminal in the browser, where multiple users share a live bash session and see each other’s commands and output in real time. It shows a simple web page that displays the shell’s stdout and stderr as a scrolling log, while a text input lets any connected client send commands to the server. The server uses Node.js’s `child_process.spawn` to launch bash, and Socket.io’s `listen` and `broadcast` methods to relay data between the shell and all clients. The client-side `term.html` uses jQuery for DOM updates and Socket.io’s `io.Socket` for message handling, rendering each line as a `<p>` element.

AI-generated description

Similar vizzes