Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Oct 20, 2024
1 parent 2cad736 commit 617576b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,14 @@ protected override Task OnConnectionInitAsync(OperationMessage message, bool sma
/// as this protocol does not support the other modes. Override this method to support your own implementation.
/// </remarks>
protected override Task OnKeepAliveLoopAsync(TimeSpan keepAliveTimeout, KeepAliveMode keepAliveMode)
=> base.OnKeepAliveLoopAsync(
{
if (keepAliveMode == KeepAliveMode.TimeoutWithPayload)
throw new NotSupportedException("The 'subscription-transport-ws' protocol does not support the 'TimeoutWithPayload' keep-alive mode.");

return base.OnKeepAliveLoopAsync(
keepAliveTimeout,
KeepAliveMode.Interval);
}

private static readonly OperationMessage _keepAliveMessage = new() { Type = MessageType.GQL_CONNECTION_KEEP_ALIVE };
/// <inheritdoc/>
Expand Down

0 comments on commit 617576b

Please sign in to comment.