Failing WebSocket connection (code=1002)
When running the "websocket_calle` example with "-p 8080", I get the error mentioned in the title, followed by:
"WAMP Protocol Error (invalid serialization of WAMP message: ExtraData unpack(b) received extra data.)"
The router configuration I use is taken from this example and invoked as suggested in crossbar.io:
docker run -v $PWD:/node -u 0 --rm --name=crossbar -it -p 8080:8080 crossbario/crossbar
Is there a fix for this? Am I doing something wrong?
I had this same problem when I compiled the example code with the libmsgpack-dev package from Ubuntu 20.04 LTS installed, which apparently provides an incompatible version of msgpack.
After I uninstalled libmsgpack-dev using apt, and instead built and installed the latest msgpack from its sources, everything worked fine.
thanks for noting! we should probably add that to the docs https://github.com/crossbario/autobahn-cpp#building-dependencies