Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

send data to user node

var http = require('http');
var data = "data to send to client";
var server = http.createServer(function (request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.write(data); // You Can Call Response.write Infinite Times BEFORE response.end
    response.end("Hello World
");
}).listen(8080);
 
PREVIOUS NEXT
Tagged: #send #data #user #node
ADD COMMENT
Topic
Name
6+7 =