function addhistory(username, message, extra) {
		var myJSONObject = {"name": username, "message": message, "extra": extra};
		request({
				url: 'http://localhost:9090/simple-chat/history',
				method: "POST",
				json: true,
				body: myJSONObject
		}, function (error, response, body){
				console.log("Pushed to history");
		});
	}
// simple-chat rest API request to add a chat message to history (so chat can be preloaded)
simple-chat rest API request to add a chat message to history (so chat can be preloaded)
simple - chat rest API request to add a chat message to history ( so chat can be preloaded )
function addhistory(username, message, extra) {
		var myJSONObject = {"name": username, "message": message, "extra": extra};
		request({
				url: 'http://localhost:9090/simple-chat/history',
				method: "POST",
				json: true,
				body: myJSONObject
		}, function (error, response, body){
				console.log("Pushed to history");
		});
	}
function addhistory ( username , message , extra ) { var myJSONObject = { "name" : username , "message" : message , "extra" : extra } ; request ( { url : 'http://localhost:9090/simple-chat/history' , method : "POST" , json : true , body : myJSONObject } , function ( error , response , body ) { console . log ( "Pushed to history" ) ; } ) ; }
simple-chat rest API request to add a chat message to history (so chat can be preloaded)
simple - chat rest API request to add a chat message to history ( so chat can be preloaded )