Marfusios / websocket-client

🔧 .NET/C# websocket client library
MIT License
693 stars 126 forks source link

How to connect with custom header cookie #62

Open huyvandnc opened 4 years ago

huyvandnc commented 4 years ago

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!

Marfusios commented 4 years ago

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

huyvandnc commented 4 years ago

I got it! Thank you for your timely response! @Marfusios