Created
April 20, 2014 02:13
-
-
Save morganney/11103140 to your computer and use it in GitHub Desktop.
Starting the socoapi server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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