Closed 24601 closed 8 years ago
oops! that's definitely not right. thanks for the very detailed description of the problem and the pull request! I'll dig into these and get a new release done as soon as I can (most likely tomorrow).
@derickbailey, thank you very very much. We really appreciate it and so far love rabbus. The last version of our backend used rabbot a lot and excited to have another great layer of abstraction on top of it!
got that pulled in and v0.8.2 is up on npm. thanks!
We are having an issue where using exactly the methods demonstrated in the docs we are getting an error about Rabbus.Topology not being a constructor.
So, given:
We would expect that senderTop will be a "Topology" object.
Instead, we receive the following error:
Opening this in the debugger and inspecting the Rabbus object and the _proto there shows us that indeed this is correct, there is .Topology on the Rabbus object.
We made a few changes go get it to work:
In lib/index.js we added Topology to the rabbus object for export like so:
and instead of using, as the docs say a single arg to Topology, we do this:
This seems to clear the error. Any advice on something we maybe missing or doing wrong? We couldn't seem to figure it out so hacked up this solution that (so far) seems to work.
@gittristan will be submitting a PR from our fork where we made these changes that we'll reference from here shortly.
UPDATE: @gittristan has filed PR #28