wamp connection failing due to protocol violation with standard recent versions of ratchet/wamp and autobahn -
i trying put wamp connection local website. used ratchet/wamp on server side , autobahn|js on client side. service running fine , able connect, onopen/onclose callbacks being triggered on server.
but when connect browser, connection's onopen callback never called. instead, console log shows following:
"autobahnjs debug enabled" autobahn.js:123:6 "ok, autobahn loaded" "0.9.9" wamp.php:28:1 "trying create wamp transport of type: websocket" autobahn.js:732:6 "using wamp transport type: websocket" autobahn.js:732:6 array [ 1, "blablarealm", object ] autobahn.js:732:6 "websocket transport send" "[1,"blablarealm",{"roles":{"caller":{"features":{"caller_identification":true,"progressive_call_results":true}},"callee":{"features":{"caller_identification":true,"pattern_based_registration":true,"shared_registration":true,"progressive_call_results":true,"registration_revocation":true}},"publisher":{"features":{"publisher_identification":true,"subscriber_blackwhite_listing":true,"publisher_exclusion":true}},"subscriber":{"features":{"publisher_identification":true,"pattern_based_subscription":true,"subscription_revocation":true}}}}]" autobahn.js:732:6 "websocket transport receive" "[0,"19232286535719350273b26118584308",1,"ratchet\/0.3.4"]" autobahn.js:732:6 "failing transport due protocol violation: unexpected message type 0" autobahn.js:732:6 invalidaccesserror: parameter or operation not supported underlying object autobahn.js:5308:0
the invalidaccesserror during call close method on websocket object never got initialized properly, i'm hoping goes away after know causes main problem, i'm totally in dark how resolve @ moment.
do have idea what's going on? there incompatibility between ratchet using , autobahn, perhaps? both claim adhere standard, that's can think of right now, being new wamp thing.
ratchet wamp v1 (and docs written @ time when version, don't mention this). see https://github.com/ratchetphp/ratchet/issues/168
wamp v1 deprecated our side (crossbar.io/autobahn project), since wamp v2 offers more features. there old version of autobahn supports wamp v1 (see above linked issue thread), suggest move wamp router.
my suggestion is, of course, crossbar.io (since i'm part of project), there others - see http://wamp-proto.org/implementations.
Comments
Post a Comment