Closed SkylineJia closed 1 year ago
Hi. I will make an new interface to you.
Subscribe to a topic with a subscription identifier. Then, the server closes the connection resulting in an error message "Remote peer has closed the socket". The error seems to stem from a four-byte issue in the code found at https://github.com/emqx/CocoaMQTT/blob/3fbf0e31827e3025cd7026e18ea83641a102333e/Source/FrameSubscribe.swift#L116 subscriptionIdentifier.byteArrayLittleEndian
According to the documentation found at https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901166, the subscription identifier should be a variable length byte.
Hello, I will fix it ASAP . Or could you provide PR to us and help us to fix this issue? Thanks~
How to set
subscriptionIdentifier
when usemqtt5.subscribe
?