Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohamed Ahmed mohamed-ahmed

  • Ottawa, Canada
View GitHub Profile
View application.js
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,
You can’t perform that action at this time.