ndexOf('.') );

			console.log( "Connecting to:", wsUrl );

			var ws = new WebSocket( wsUrl );

			ws.onopen = function() {
				console.log( "Socket Opened" );
			};

			ws.onmessage = function( msg ) {
				var data = msg.data;
				
				var header = "Received Raw data";
				var content = data;
				
				if ( isJson( data ) ) {
					data = JSON.stringify( JSON.parse( data ), undefined, 4 );
					header = "Received JSON data";
					content = syntaxHighlight( data );
				}
				
				addEntry( header, content );