File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,6 @@ public class GraphQLHttpClientOptions
6161 /// 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 ? > SetWebSocketConnectionInitPayload { get ; set ; } = ( ) => null ;
64+ public Func < GraphQLHttpClientOptions , object ? > ConfigureWebSocketConnectionInitPayload { get ; set ; } = options => null ;
6565 }
6666}
Original file line number Diff line number Diff 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 . SetWebSocketConnectionInitPayload ( )
118+ Payload = Options . ConfigureWebSocketConnectionInitPayload ( Options )
119119 } ;
120120
121121 var observable = Observable . Create < GraphQLResponse < TResponse > > ( o =>
You can’t perform that action at this time.
0 commit comments