#How socket client add header and token?
1 messages · Page 1 of 1 (latest)
hi
Hi
var dict = new Dictionary<string, string>();
dict.Add("authorization", $"Bearer eyJhbGci");
dict.Add("token", $"eyJhbGci");
io.Connect("http://localhost:8000");
I cant add Headers
I searched a lot
Socket.IO V4 Client PLUS (Standalone & WebGL) documentation have not
Please read the topic I linked. Tldr: it is not possible to add headers, you have to use the authentication payload
API key use ?
Here is our FAQ entry regarding this issue as well.
The screenshot you posted seems to be from a different library or other foreign code
are you just sending random stuff?
I am sorry but I think I can not help you here, if you dont read and understand the docs and/or the thread I linked. I understand that you are not good at english but then use a translator or something. Our example script already contains an exmaple how to send a token.
Also, you bought a library, not a coding service so you can not expect us to server you with ready made custom code for you.
You must read and understand the docs - which were available before purchase already. I will be happy to continue supporting you if there are questions but I need to see that you are actually willing to learn and right now thing look like you expect me to create your code.
No spamming please.
socket.handshake.auth.token