propershark / crossbar-router

Crossbar.io router to facilitate communication between app components.
0 stars 0 forks source link

Agency RPCs send nested arrays #2

Open elliottwilliams opened 8 years ago

elliottwilliams commented 8 years ago

The nesting of arrays in calls like agency.routes is one too deep.

Expected:

agency.routes -> args: [Route, Route, ...]

Actual:

agency.routes -> args: [[Route, Route, ...]]

faultyserver commented 8 years ago

I don't have time to look at this right now, but I imagine you could splat this line to get rid of the nested array.

If that doesn't work, I don't know what the solution would be. Maybe yield out each element?

elliottwilliams commented 8 years ago

It will probably need to be yields. I'll try to take a look at this tonight.

elliottwilliams commented 8 years ago

Yields (or returning tuples) didn't do anything differently...but I also noticed that in autobahn.js I get the expected args: [Route]. So I'm wondering if it's just a quirk of MDWamp.

faultyserver commented 8 years ago

Was this ever resolved?

I'm assuming yes, since we've made progress since July 10th...