How to use the PacketId property #317
silentdiverchris
started this conversation in
General
Replies: 1 comment
-
Actually, I've added a generated requestId to the callback parameter so solved it that way, am still curious as to what the PacketId is for though, but no need to answer in any great detail as my problem is solved, thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm curious as to how I can use the PacketId property, specifically whether I can use it to match up a response to the originating request.
PacketId is returned with SocketIOResponse (always -1 at the moment) but I'm not clear how I might set a client-defined PacketId in a request (or if that's how it's supposed to work at all), and so match up a response to a request.
If that isn't what the PacketId is supposed to be for, is there another mechanism I could use ? - I match on the event type, but the server end of what I'm working on has some cases where the same event types is returned by different requests, and of course, matching the first matching response to first request that was sent isn't entirely reliable.
I've looked at the code and see it specified in a test case, with a PacketId at the end of the request, and seems to be retrieved on the basis that it's the last piece, but can't see how I'd set a PacketId in the EmitAsync() call.
I am not able to affect the code that processes the requests to get it to accept an identifier and get it to return it the response payload, so that's not an option.
Any guidance much appreciated, I am using vsn 3.0.6 if that makes a difference, thanks.
Beta Was this translation helpful? Give feedback.
All reactions