Skip to content

Commit 0ca0ce9

Browse files
committed
fix naming
1 parent 5816b20 commit 0ca0ce9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GraphQL.Client/GraphQLHttpClientOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public class GraphQLHttpClientOptions
5858
public Action<ClientWebSocketOptions> ConfigureWebsocketOptions { get; set; } = options => { };
5959

6060
/// <summary>
61-
/// The `ConnectionParams` object sent with the GQL_CONNECTION_INIT message on establishing a websocket connection.
61+
/// Sets the `ConnectionParams` object sent with the GQL_CONNECTION_INIT message on establishing a GraphQL websocket connection.
6262
/// See https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md#gql_connection_init.
6363
/// </summary>
64-
public Func<object?> SetWebSocketConnectionParams { get; set; } = () => null;
64+
public Func<object?> SetWebSocketConnectionInitPayload { get; set; } = () => null;
6565
}
6666
}

src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public IObservable<GraphQLResponse<TResponse>> CreateSubscriptionStream<TRespons
115115
{
116116
Id = startRequest.Id,
117117
Type = GraphQLWebSocketMessageType.GQL_CONNECTION_INIT,
118-
Payload = Options.SetWebSocketConnectionParams()
118+
Payload = Options.SetWebSocketConnectionInitPayload()
119119
};
120120

121121
var observable = Observable.Create<GraphQLResponse<TResponse>>(o =>

0 commit comments

Comments
 (0)