Skip to content

Instantly share code, notes, and snippets.

@FooBarWidget
Created April 28, 2011 19:22
Show Gist options
  • Save FooBarWidget/947100 to your computer and use it in GitHub Desktop.
Save FooBarWidget/947100 to your computer and use it in GitHub Desktop.
var net = require('net');
var server = net.createServer(function(socket) {
console.log('New client');
socket.on('data', function() {
console.log('data');
})
});
server.listenFD(3, 'tcp4');
require 'socket'
server = TCPServer.new('127.0.0.1', 3000)
exec("node", "listen.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment