Saturday, 3 June 2017

How to host javascript server on web hosting?

how can I host server.js that use socket.io inside on website hosting? Maybe someone know any hosting that let me host javascript?

Server example:

var http = require("http").createServer(), io = require("socket.io").listen(http);

http.listen(8080);

//================================  Connection stuff ================================//
io.sockets.on("connection", function(socket)
{

});

console.log('Server listening on port %s', http.address().port);



via Tioww

No comments:

Post a Comment