Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pm2 / usr / local / lib / pm2 / node_modules / nssocket / examples / foo.js
Size: Mime:
var nssocket = require('../lib/nssocket');
var outbound = new nssocket.NsSocket();
 
outbound.data('Broadcasting', function (data) {
  console.log(data)
});

outbound.connect(4949);

outbound.send('Connecting', { "random": Math.random() });