When deploying a droplet, does a digital ocean droplet allow direct socket access?

November 6, 2016 974 views
Apache Ubuntu 16.04

I am trying to deploy a web application that allows access to sockets.

1 Answer

i’ve had no difficulty running a node.js application that uses sockets (with the socket.io library).


var iohost = require(‘socket.io’).listen(3000).on('connection’,function(sock){
sock.broadcast.emit('foo’,{'foobar’: data.letter});

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!