function sendToLog(username, message, extra) {
		var myJSONObject = {"name": username, "message": message, "extra": extra};
		request({
				url: 'http://localhost:9090/simple-chat/log',
				method: "POST",
				json: true,
				body: myJSONObject
		}, function (error, response, body){
				console.log("Pushed to Log");
		});
	}
// simple-chat rest API request to send chat message.
simple-chat rest API request to send chat message.
simple - chat rest API request to send chat message .
function sendToLog(username, message, extra) {
		var myJSONObject = {"name": username, "message": message, "extra": extra};
		request({
				url: 'http://localhost:9090/simple-chat/log',
				method: "POST",
				json: true,
				body: myJSONObject
		}, function (error, response, body){
				console.log("Pushed to Log");
		});
	}
function sendToLog ( username , message , extra ) { var myJSONObject = { "name" : username , "message" : message , "extra" : extra } ; request ( { url : 'http://localhost:9090/simple-chat/log' , method : "POST" , json : true , body : myJSONObject } , function ( error , response , body ) { console . log ( "Pushed to Log" ) ; } ) ; }
simple-chat rest API request to send chat message.
simple - chat rest API request to send chat message .