-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Added configureConnection delegate to CircuitStartOptions #44623
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
Conversation
No automated tests for this. Tested manually:
<script>
Blazor.start({
logLevel: 1, // LogLevel.Debug
configureSignalR: builder => builder.configureLogging("debug"), // LogLevel.Debug
configureConnection: function (connection) {
connection.serverTimeoutInMilliseconds = 120000;
}
});
</script>
Result: 'Error: Server timeout elapsed without receiving a message from the server.' appeared in 2 minutes. |
I'm probably missing some context here, so apologies if this has already been discussed. Given we can already configure the server timeout as follows: <script>
Blazor.start({
configureSignalR: function (builder) {
builder.serverTimeoutInMilliseconds = 30000;
builder.keepAliveIntervalInMilliseconds = 15000;
}
});
</script> As we have documented here. What's the motivation to provide a separate |
I think those docs are wrong.
The HubConnectionBuilder does not have those properties. See ***@***.***/signalr/hubconnectionbuilder?view=signalr-js-latest
Message ID: ***@***.***>
|
I think those docs are wrong.
The HubConnectionBuilder does not have those properties. See ***@***.***/signalr/hubconnectionbuilder?view=signalr-js-latest)
Message ID: ***@***.***>
|
Is the HTTP timeout the same thing? builder.httpConnectionOptions.timeout may be useful? cc/ @guardrex |
Seemed ok per Brennan's feedback at ... dotnet/AspNetCore.Docs#27197 (comment) He didn't remark directly on it, but it was in the preceding comment to show what I was placing in the doc. I'm OOF this evening, but I'll work it first thing Wednesday morning and sort it out. |
Am I looking at the wrong API? These are here, unless this is totally the wrong thing ... |
I believe that one you linked is the |
I see. Ok ... I think Brennan was perhaps looking at the text and didn't spot my code problem. I have time first thing in the morning to fix it up. Now tracked by ... Foul SignalR code example fix needed |
I tried to set serverTimeoutInMilliseconds through configuresignalR method. It doesn't work. We need to fix the docs |
I'm working on that right now, @surayya-MS, on the cross-linked docs issue. UPDATE: @surayya-MS ...
|
Added configureConnection delegate to CircuitStartOptions
Summary of the changes (Less than 80 chars)
Description
Fixes #18840 by enabling user to configure HubConnection object like this: