Class GraphQLSocketOptions
- Namespace
- HotChocolate.AspNetCore
- Assembly
- HotChocolate.AspNetCore.dll
Options relevant to GraphQL over Websocket.
public sealed class GraphQLSocketOptions
- Inheritance
-
GraphQLSocketOptions
- Inherited Members
Constructors
GraphQLSocketOptions()
public GraphQLSocketOptions()
Properties
ConnectionInitializationTimeout
Defines the time in which the client must send a connection initialization message before the server closes the connection.
Default: TimeSpan.FromSeconds(10)
public TimeSpan ConnectionInitializationTimeout { get; set; }
Property Value
KeepAliveInterval
Defines an interval in which the server will send keep alive messages to the client in order to keep the connection open.
If the interval is set to null the server will send no keep alive messages.
Default: TimeSpan.FromSeconds(5)
public TimeSpan? KeepAliveInterval { get; set; }