After we simplified the broadcast/receive protocol, all original examples became not working.
In original system, we directly emit and receive messages as string.
Now, however, the received signal connects to _receivedMessage() slot and it tries to decode the message from json string.
In this procedure, a JSONDecodeError occurs.
To Reproduce
All messages should be changed to go through broadcast() and receivedSlot().
Describe the bug
After we simplified the broadcast/receive protocol, all original examples became not working.
In original system, we directly emit and receive messages as string. Now, however, the
received
signal connects to_receivedMessage()
slot and it tries to decode the message from json string. In this procedure, aJSONDecodeError
occurs.To Reproduce
All messages should be changed to go through
broadcast()
andreceivedSlot()
.