Skip to content

Instantly share code, notes, and snippets.

@Gozala
Created April 12, 2010 11:53
Show Gist options
  • Save Gozala/363479 to your computer and use it in GitHub Desktop.
Save Gozala/363479 to your computer and use it in GitHub Desktop.
bespin gist: gist
var Server = (function() {
var _observers = [];
var _port = 9988;
var _server = Cc['@mozilla.org/server/jshttp;1'].
createInstance(Ci.nsIHttpServer);
var _notifyChange = function(o) {
_observers.foreach(o.changed);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment