#How socket client add header and token?

1 messages · Page 1 of 1 (latest)

abstract wasp
#

hi

tired silo
#

Hi

abstract wasp
#

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

tired silo
#

Please read the topic I linked. Tldr: it is not possible to add headers, you have to use the authentication payload

abstract wasp
#

API key use ?

tired silo
#

As described in the topic I linked.

abstract wasp
tired silo
tired silo
#

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.

abstract wasp
#

I see ExampleScript.cs

#

GetAuthData inside Id token How to use server ?

abstract wasp
#

...

#

...

#

.

#

.

#

.

tired silo
#

No spamming please.

socket.handshake.auth.token

abstract wasp
#

spam okey

#

is it right ю

#

?