Repository navigation
|
Hi! I realized that when I send back an In my case I just want the server to acknowledge back a single structured piece of data but the client gets an array with that data inside instead. I would appreciate some help :D |
Answered by
Totodore
Feb 21, 2024
Replies: 1 comment 1 reply
|
I've noticed that you actually enforce the transformation of an Ack packet to an array on the code socketioxide/socketioxide/src/packet.rs Line 331 in c8bbd22 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It might be a miscomprehension, but according to the protocol an ack packet is always encoded as an array:
https://socket.io/docs/v4/socket-io-protocol/#acknowledgement-1
However it should be de-encoded as a single element in the frontend if you provided only one element.
It would be worth to check the encoding code for ack packet in the official implementation.