socket.handshake.headers vs socket.request.headers #4607
-
I cannot from https://socket.io/docs/v4/server-api/#socketrequest and https://socket.io/docs/v4/server-api/#sockethandshake deduct what the differences are. Is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi!
Lines 288 to 290 in 0c0eb00
Yes, those are the headers of the first HTTP request.
No, they are set once in all cases. |
Beta Was this translation helpful? Give feedback.
Hi!
socket.handshake.headers
andsocket.request.headers
are the exact same object.socket.io/lib/socket.ts
Lines 288 to 290 in 0c0eb00
Yes, those are the headers of the first HTTP request.
No, they are set once in all cases.