Skip to content

Commit 365f1e5

Browse files
committed
publicly set WSConnectionInitPayload
1 parent d99265b commit 365f1e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Linq2GraphQL.Client.Subscriptions/WebsocketRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public WebsocketRequest(string type)
1313

1414
[JsonPropertyName("type")] public string Type { get; set; }
1515

16-
[JsonPropertyName("payload")] public GraphQLRequest Payload { get; set; }
16+
[JsonPropertyName("payload")] public object Payload { get; set; }
1717
}
1818

1919
//public class WebsocketRequestPayload

src/Linq2GraphQL.Client/GraphClientOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ public class GraphClientOptions
55
{
66
public bool UseSafeMode { get; set; } = false;
77
public SubscriptionProtocol SubscriptionProtocol { get; set; } = default;
8-
public Func<GraphClient, Task<GraphQLRequest>> WSConnectionInitPayload { get; internal set; } = opts => null;
8+
public Func<GraphClient, Task<GraphQLRequest>> WSConnectionInitPayload { get; set; } = opts => null;
99
}

0 commit comments

Comments
 (0)