discord-web
Advanced tools
Comparing version 0.5.0 to 0.6.0
{ | ||
"name":"discord-web", | ||
"description":"Web client for the Discord MUD Engine.", | ||
"version":"0.5.0", | ||
"version":"0.6.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -18,3 +18,3 @@ (function() { //Only Discord will end up in the global namespace. | ||
//parsed as a JSON object. | ||
escapePattern: /^<!-- \n(.*)\n-->$/g, | ||
escapePattern: /<!-- \n(.*)\n-->/g, | ||
//IDs for the various UI elements. | ||
@@ -40,3 +40,3 @@ ui: { | ||
this.connection = io.connect('http://localhost'); | ||
this.connection.emit("data", ">>> GUI_ON <<<"); | ||
//this.connection.emit("data", ">>> GUI_ON <<<"); | ||
this.connection.on('data', this.handleData.bind(this)); | ||
@@ -43,0 +43,0 @@ this.connection.on('ansi', this.handleANSI.bind(this)); |
@@ -21,3 +21,3 @@ var net = require('net'), | ||
}); | ||
var io = require('socket.io').listen(app); | ||
@@ -34,5 +34,10 @@ io.sockets.on('connection', function (socket) { | ||
}); | ||
return { | ||
listen: function(port) { | ||
app.listen(port); | ||
sys.puts("Webserver listening on port "+port); | ||
} | ||
} | ||
return app; | ||
}; |
12528
310