[nodejs] Re: Trying to build a MUD that allows Telnet and Web socket connections

2015-12-18 Thread mogill
> > I'm very curious how it turned out for you - is your project available > online? > > Former addict here :) Ditto -- please support importing legacy PerlMUD databases! Node should be perfect for this sort of event-driven job, and make possible scripting f

[nodejs] Re: Promise Unhandled rejection null

2015-12-18 Thread Tim Davis
In your test, done has to be called to avoid timing out. In mocha if your unit under test causes an unexpected error, then you call done with that error so mocha can tell you. Here is a revision that calls `done` with the error. before("Description", function(done) { require('path').run(event

[nodejs] Re: JSdom append to body and render as an ejs view

2015-12-18 Thread Roy Mor
I see. I thought maybe of serving the remote server files from my node server. Do you know maybe a way to download the remote website to a local directory on the node server and I'll edit the html so that my css and js files will be relative to where the website directory is stored? Also if I do

[nodejs] node native/nan questions

2015-12-18 Thread Axel Kittenberger
I'm just trying to understand nan/node native extensions. First question, class hierachy when wrapping C++ stuff. Is unwrapping a static cast? (So far I guess so ) or can it in fact be a dynamic cast? Say I got in C++ Wrapper AClass and Wrapper BClass that both inherit from Wrapper MasterClass.

[nodejs] Promise Unhandled rejection null

2015-12-18 Thread Tim Davis
If there is an error in your test, be sure to pass it to done(err) so that the test doesn't time out. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Post

[nodejs] Re: JSdom append to body and render as an ejs view

2015-12-18 Thread Jimb Esser
I don't know anything about jsdom, but from what you said it sounds like you're trying to set up a server, to which you can request http://myhost/?url=otherhost.com/page.html and it returns that page, and then when that pages fetches style.css, it's failing. You need to rewrite what is returne

[nodejs] Re: Promise Unhandled rejection null

2015-12-18 Thread AndDM
Hi, thanks for your reply, i've edit my code in: module.exports.run = function(event, context, cb) { myclass.queryAsync(...) .then(function (results) { if (results.field === "test") { return cb("error"); } else { return cb(null, "success"); } }) .catch(function (err) { r

[nodejs] Trying to build a MUD that allows Telnet and Web socket connections

2015-12-18 Thread Zlatko
Since it's a different protocol, your socket.io would listen on another port. So, I guess the game api itself is on abstract enough to be accepting player input and sending output in a common way, your connections protocols have to hook into this abstract API. Now, socket connections and telnet