//
// Copyright (c) Cyrille Fauvel, Inc. All rights reserved
//
// Node.js server workflow
// by Cyrille Fauvel
// September 2015
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// Cyrille Fauvel PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// Cyrille Fauvel SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  Cyrille Fauvel
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
var socket =null ;

$(document).ready (function () {
	//var socket =io.connect ('http://' +  window.location.host + ':' + window.location.port) ;
	//socket =io () ;
	//
	//socket.on ('connect', function (data) {
	//	socket.emit ('join', 'Hello World from client') ;
	//}) ;
	//
	//socket.on ('disconnect', function () {
	//	console.log ('Server disconnected') ;
	//}) ;
	//
	//socket.on ('messages', function (data) {
	//	console.log (data) ;
	//	var stream =ss.createStream () ;
	//	//ss (socket).emit ('stream', stream) ;
	//	//$("#cam1 source").attr ('src')
	//
	//
	//}) ;

}) ;

// Mac address to uppercase
function macAddress (value) {
	value =value.toLowerCase () ;
	value =value.replace ('-', ':').replace ('.', ':') ;
	return (value) ;
}
@@ -885,14 +885,36 @@
 ct (
-'http:
+window.location.location + '
 //' 
@@ -1596,8 +1596,10 @@
 ue) ;%0D%0A%7D
+%0D%0A

Update app.js