Skip to content

Commit d4090a7

Browse files
authored
Make WebSocketConnection.Connect virtual (#674)
1 parent fe16988 commit d4090a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Transports.Subscriptions.WebSockets/WebSocketConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public WebSocketConnection(
1616
_server = subscriptionServer;
1717
}
1818

19-
public async Task Connect()
19+
public virtual async Task Connect()
2020
{
2121
try
2222
{

tests/ApiApprovalTests/GraphQL.Server.Transports.Subscriptions.WebSockets.approved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace GraphQL.Server.Transports.WebSockets
2121
public class WebSocketConnection
2222
{
2323
public WebSocketConnection(GraphQL.Server.Transports.WebSockets.WebSocketTransport transport, GraphQL.Server.Transports.Subscriptions.Abstractions.SubscriptionServer subscriptionServer) { }
24-
public System.Threading.Tasks.Task Connect() { }
24+
public virtual System.Threading.Tasks.Task Connect() { }
2525
}
2626
public class WebSocketConnectionFactory<TSchema> : GraphQL.Server.Transports.WebSockets.IWebSocketConnectionFactory<TSchema>
2727
where TSchema : GraphQL.Types.ISchema

0 commit comments

Comments
 (0)