Hi, all. I'm using SDK version 2.1.5 and I ran into a problem.
I can connect normally by creating an instance and subscribing for callbacks.
The problem is whenever I send data via publish, data is sent to the server, yet connection closes immediately and I receive an error Error Domain=MGCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}.
Also, there are debug logs that are being printed to the console when I try to publish a message to a topic.
Hi, all. I'm using SDK version 2.1.5 and I ran into a problem.
I can connect normally by creating an instance and subscribing for callbacks.
The problem is whenever I send data via
publish
, data is sent to the server, yet connection closes immediately and I receive an errorError Domain=MGCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}
.Also, there are debug logs that are being printed to the console when I try to publish a message to a topic.
I've paired with our backend mate and he has shown in logs that the server cannot parse the header.
Any clues what to look for? Am I doing something wrong?