Table of Contents

Property RequestHeaders

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

RequestHeaders

An optional dictionary of HTTP request headers to be sent with the WebSocket request.

public IDictionary<string, StringValues>? RequestHeaders { get; init; }

Property Value

IDictionary<string, StringValues>

Remarks

Not supported when running in the Browser, such as when using Blazor WebAssembly, as the underlying Browser implementation does not support adding headers to a WebSocket.