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

November 6, 2016 34 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).

EXAMPLE:

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

Have another answer? Share your knowledge.