Skip to content

Instantly share code, notes, and snippets.

View CaptainYarb's full-sized avatar
🎮
Creating Multiplayer Servers

Jonathan Yarbor CaptainYarb

🎮
Creating Multiplayer Servers
View GitHub Profile
var util = require('util'),
EventEmitter = require('events').EventEmitter;
var Server = function() {
var self = this;
this.on('custom_event', function() {
self.logSomething('custom_event');
});