autobahn.js

#1

What a difference between autobahn.js from
https://github.com/crossbario/crossbarexamples.git

and

https://github.com/tavendo/AutobahnJSbuilt.git or bower autobahn?

crossbarexamples/metaapi work

but the same example with autobahn.js from another place has error on subscribe call:

[promises] Unhandled rejections: 1

TypeError: Cannot read property ‘then’ of undefined

at http://localhost:8080/client.html:148:49

bower autobahn is not uptodate?

Really I need autobahn.min.js but from were I could get it?

0 Likes

#2

If I use http://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.min.jgz
then subcription working but with error:

Potentially unhandled rejection [1] TypeError: Cannot read property ‘then’ of undefined

so I can’t unsubscribe later.

0 Likes

#3

Ok. I found:
the difference on the presence or absence of the method Subscription.on_unsubscribe

So, is this method will be or not? It could be useful.

···
0 Likes