Hard to explain exactly what i meant, but the returned methods (open, setAuthId, ect) use options from the $wampProvider scope rather than using the options set on the current connection (on the $get scope)
this leads to some errors, for me my second connection has "wampcra" with an authid set after the first connection is opened.
Hard to explain exactly what i meant, but the returned methods (open, setAuthId, ect) use options from the $wampProvider scope rather than using the options set on the current connection (on the $get scope)
this leads to some errors, for me my second connection has "wampcra" with an authid set after the first connection is opened.
The line i'm seeing the error is here: https://github.com/voryx/angular-wamp/blob/master/src/angular-wamp.js#L381
I think options from here needs to be moved to this level
I put a breakpoint in chrome and used the console to print
options
andconnection._options
: