var qx = require('qooxdoo');
var t= new T(4080);
var t= new qx.T(4080);
// none of them are defined :s
I have my main file, run.js and then a file T.js with a class:
qx.Class.define("T", {
extend : qx.core.Object,
constructor: function(port){
debugger;
var self = this;
this.port = port;
this.server = http.createServer(function(req, res){
self.onRequest.apply(self, arguments);
});
server.listen(port);
},
members : {
onRequest: function(req, res){
debugger;
util.log('requested!');
}
}
});
I'm missing something?
http://manual.qooxdoo.org/1.6/pages/server/overview.html Here they don't say how to use other files, only in the same file.. so I don't really know how to do..
any help is very appreciated, thanks (: