websocket-client
websocket-client copied to clipboard
How to connect with custom header cookie
Hi all, i didn't find it in the document, but can i add the cookie like this
WebSocket = new WebsocketClient(new Uri(url))
{
headers.Add("Cookie","my cookie");
};
Thanks!
Hello @huyvandnc ,
yes, it is possible, see advanced configuration documentation.
Also here is an exact example of setting headers: https://github.com/Marfusios/websocket-client/issues/52
I got it! Thank you for your timely response! @Marfusios