Skip to content

Instantly share code, notes, and snippets.

@morganney
Created April 20, 2014 02:13
Show Gist options
  • Select an option

  • Save morganney/11103140 to your computer and use it in GitHub Desktop.

Select an option

Save morganney/11103140 to your computer and use it in GitHub Desktop.
Starting the socoapi server.
// Standalone
var socoapi = require('socoapi');
socoapi.listen('3535', 3600000, function() {
console.log('socoapi listening on port 3535');
});
// Embedded
var app = require('express')()
, socoapi = require('socoapi')
;
app.listen('3000', function() {
console.log('app listening on port 3000');
socoapi.listen('3535', 3600000, function() {
console.log('socoapi listening on port 3535');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment