我使用Autobahn JS to Crossbar.io实现登录(使用wampcra)时出现了这些错误:
2018-04-13T09:04:34-0300 [Router 6948] failing WebSocket opening handshake ('This server only speaks WebSocket subprotocols wamp.2.cbor.batched, wamp.2.cbor, wamp.2.msgpack.batched, wamp.2.msgpack, wamp.2.ubjson.batched, wamp.2.ubjson, wamp.2.json.batched, wamp.2.json')
和
2018-04-13T09:04:34-0300 [Router 6948] dropping connection to peer tcp4:127.0.0.1:53586 with abort=False: This server only speaks WebSocket subprotocols wamp.2.cbor.batched, wamp.2.cbor, wamp.2.msgpack.batched, wamp.2.msgpack, wamp.2.ubjson.batched, wamp.2.ubjson, wamp.2.json.batched, wamp.2.json
我认为这是一个高速公路版本问题。
Version: Crossbar.io COMMUNITY 17.11.1
答案 0 :(得分:0)
我怀疑高速公路是如何更新的。
解决方案: 重新安装高速公路。
删除你的AutobahnJS:
npm un autobahn -S
安装最新的AutobahnJS:
npm i autobahn -S
$ npm i autobahn -S + autobahn@18.3.2 updated 1 package in 8.259s
并尝试再次连接到Crossbar。
2018-04-13T09:04:02-0300 [Controller 6943] __ __ __ __ __ __ __ __ 2018-04-13T09:04:02-0300 [Controller 6943] / `|__)/ \/__`/__`|__) /\ |__) |/ \ 2018-04-13T09:04:02-0300 [Controller 6943] \__,| \\__/.__/.__/|__)/~~\| \. |\__/ 2018-04-13T09:04:02-0300 [Controller 6943] 2018-04-13T09:04:02-0300 [Controller 6943] Version: Crossbar.io COMMUNITY 17.11.1 2018-04-13T09:04:02-0300 [Controller 6943] Public Key: xxxxxxxxx 2018-04-13T09:04:02-0300 [Controller 6943] ... 2018-04-13T09:04:36-0300 [Router 6948] failing WebSocket opening handshake ('This server only speaks WebSocket subprotocols wamp.2.cbor.batched, wamp.2.cbor, wamp.2.msgpack.batched, wamp.2.msgpack, wamp.2.ubjson.batched, wamp.2.ubjson, wamp.2.json.batched, wamp.2.json') 2018-04-13T09:04:36-0300 [Router 6948] dropping connection to peer tcp4:127.0.0.1:53610 with abort=False: This server only speaks WebSocket subprotocols wamp.2.cbor.batched, wamp.2.cbor, wamp.2.msgpack.batched, wamp.2.msgpack, wamp.2.ubjson.batched, wamp.2.ubjson, wamp.2.json.batched, wamp.2.json .... 2018-04-13T09:06:04-0300 [Router 6948] session "6143323932507538" joined realm "realm1"