net = require('net'),
http = require('http'),
https = require('https'),
+ node_static = require('node-static'),
fs = require('fs'),
url = require('url'),
dns = require('dns'),
app = null;
app = require(__dirname + '/app.js');
- var objs = {tls:tls, net:net, http:http, https:https, fs:fs, url:url, dns:dns, crypto:crypto, events:events, util:util, ws:ws, jsp:jsp, pro:pro, _:_, starttls:starttls};
+ var objs = {tls:tls, net:net, http:http, https:https, node_static:node_static, fs:fs, url:url, dns:dns, crypto:crypto, events:events, util:util, ws:ws, jsp:jsp, pro:pro, _:_, starttls:starttls};
app.init(objs);
app.rebindIRCCommands();
*/
if (this.config.handle_http) {
this.fileServer = new (require('node-static').Server)(__dirname + this.config.public_http);
- this.jade = require('jade');
this.cache = {alljs: '', html: []};
}
this.httpServers = [];
-this.httpHandler = function (request, response, server) {
- return app.httpHandler(request, response, server);
+this.httpHandler = function (request, response) {
+ return app.httpHandler(request, response);
}
this.websocketMessage = function (msg, callback) {
return app.websocketMessage(this, msg, callback);
}
+this.websocketKiwiMessage = function (msg, callback) {
+ return app.websocketKiwiMessage(this, msg, callback);
+}
this.websocketIRCConnect = function (nick, host, port, ssl, callback) {
return app.websocketIRCConnect(this, nick, host, port, ssl, callback);
}