Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to set up custom headers during handshake #57

Open
DmitriyDN opened this issue Jun 1, 2021 · 1 comment
Open

Is it possible to set up custom headers during handshake #57

DmitriyDN opened this issue Jun 1, 2021 · 1 comment

Comments

@DmitriyDN
Copy link

DmitriyDN commented Jun 1, 2021

In nodeJS package for signalR there is an ability to set headers that can be parsed in connect/disconnect events on the server (in case of HTTP handshake).

https://www.npmjs.com/package/@microsoft/signalr

Is it possible to add such ability there?

IHttpConnectionOptions.d.ts

interface IHttpConnectionOptions {
    /** {@link @microsoft/signalr.MessageHeaders} containing custom headers to be sent with every HTTP request. Note, setting headers in the browser will not work for WebSockets or the ServerSentEvents stream. */
    headers?: MessageHeaders;
    httpClient?: HttpClient;
    transport?: HttpTransportType | ITransport;
    logger?: ILogger | LogLevel;
    logMessageContent?: boolean;
    skipNegotiation?: boolean;
    withCredentials?: boolean;
}
@DarioSiroki
Copy link

check #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants