Skip to content

Instantly share code, notes, and snippets.

View mohamed-ahmed's full-sized avatar

Mohamed Ahmed mohamed-ahmed

View GitHub Profile
var q= function(s){ return document.getElementById(s) }
function send(){
var input = q('text');
socket.send(input.value);
input.value = '';
}
var socket = new io.Socket(null, {
port: 8001,