Closed alexeyinkin closed 2 years ago
This -
{"action":4,"connectionId":"cwimUxHpt7","connectionKey":"...","connectionSerial":-1,"connectionDetails":{"clientId":"*","connectionKey":"...","maxMessageSize":16384,"maxInboundRate":15,"maxOutboundRate":15,"maxFrameSize":262144,"serverId":"...","connectionStateTtl":120000,"maxIdleInterval":15000}}
is not valid response as per the MQTT specification the broker should reply with correctly formatted MQTT messages, not json strings. The client won't process this, although whether we should raise an exception here could be questioned.
Run this:
An exception is thrown:
The
data
there is something likeBut the code expects it to be a
List<int>
.The same thing happens with a valid key. The message is again a String of this kind: