Am 24.08.2014 00:39, schrieb Scott Reed:
> I'm using npm:
>
> var autobahn = require('autobahn');
I guess this means you are using the NodeJS variant of AutobahnJS, not
the browser variant. I have zero experience with node-webkit.
What AutobahnJS version? What does
autobahn.version;
tell?
>
> The code is:
>
> var args = [i, d.chart_type, d.region_type, category];
Can you add
console.log(args instanceof Array);
right after above line and tell us what that outputs?
What do you get with the following?
$ node --version
v0.10.24
$ node
> [1,2,3] instanceof Array
true
> Array
[Function: Array]
> session.call("x.select", args);
>
> There are no frames because the call fails because the second assert fails:
>
> Session.prototype.call = function (procedure, args, kwargs, options) {
> util.assert(typeof procedure === 'string', "Session.call:
> <procedure> must be a string");
> util.assert(!args || args instanceof Array, "Session.call: <args>
> must be an array []");
> util.assert(!kwargs || kwargs instanceof Object, "Session.call:
> <kwargs> must be an object {}");
> util.assert(!options || options instanceof Object,
> "Session.call: <options> must be an object {}");
>
> If I comment out the highlighted line it works fine.
The assert works fine in browsers and (pure) node apps. We can't remove
that.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
autobahnws+...@googlegroups.com
> <mailto:
autobahnws+...@googlegroups.com>.
> <mailto:
autob...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/autobahnws/cae94395-2a25-499b-9493-29c6c43ebfcd%40googlegroups.com
> <
https://groups.google.com/d/msgid/autobahnws/cae94395-2a25-499b-9493-29c6c43ebfcd%40googlegroups.com?utm_medium=email&utm_source=footer>.