Closed FabioGaming closed 9 months ago
yes as many as you like, just go to createHandshakeRequest() method and add required headers there // As client private HttpRequest createHandshakeRequest() { var ret = HttpRequest.CreateWebSocketRequest(_uri);
var headers = ret.Headers;
headers["customHeaderOne"] = "test Header";
headers["customHeaderTwo"] = 2;
if (!_origin.IsNullOrEmpty())
headers["Origin"] = _origin;
My WebSocket requires headers, how can I add them? The default Socket Handling does it like this:
Socket.Options.SetRequestHeader("key", "value");