View SimpleChatServer.js
//ooen all required modules
var net = require('net');
var util = require('util');
//declare the sockets array and port number
var sockets = [];
var port = 4000;
//start the chat server
require('net').createServer(function(socket){