cesanta / mongoose

Embedded Web Server
https://mongoose.ws
Other
11.16k stars 2.73k forks source link

how to do websocket auth #2958

Closed lovelypp777 closed 1 week ago

lovelypp777 commented 1 week ago

I use mg_ws_connect to connect to the websocket server, but the server needs cookie when connect. My question is: how to send cookie when connecting to server ?

thanks!

scaprile commented 1 week ago

Please see our documentation, and follow the guidelines in our tutorials. Please understand the technology you are using, there is no authentication in WebSocket, there are no cookies in WebSocket, you do whatever you need to do in HTTP(S) and then upgrade to websocket This is not a Mongoose issue. Please don't open issues to ask questions