jchristn/WatsonWebsocket

How does the client set Origin

Closed this issue · 6 comments

WatsonWsClient.ConfigureOptions();

How to set parameters

Adding @MacKey-255 - this capability was part of their PR and may have some insight.

@manyhelp for example:

var client = new WatsonWsClient(WebsocketUrl).ConfigureOptions((options) =>
            {
                options.Cookies.Add(new Cookie("mycookie", "value", "/path", WebsocketUrl.DnsSafeHost));
            });

The options is the instance of the ClientWebSocketOptions class, it allow to add options in the WebSocket Client. SAlu2s

@MacKey-255 no header add Origin

header add “User-Agent” "Origin" "Host"

Thank you @MacKey-255 for chiming in!