Skip to content

Commit 35a1819

Browse files
committed
docs(patches): add notes for testing connection-type
1 parent 31a354a commit 35a1819

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

patches/connection-type.diff

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ This allows the backend to distinguish them. In our case we use them to count a
44
single "open" of Code so we need to be able to distinguish between web sockets
55
from two instances and two web sockets used in a single instance.
66

7+
To test this,
8+
1. Run code-server
9+
2. Open Network tab in Browser DevTools and look for websocket requests
10+
3. You should see the connection type in the request url
11+
12+
713
Index: code-server/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts
814
===================================================================
915
--- code-server.orig/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts
1016
+++ code-server/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts
1117
@@ -231,7 +231,7 @@ async function connectToRemoteExtensionH
12-
18+
1319
let socket: ISocket;
1420
try {
1521
- socket = await createSocket(options.logService, options.socketFactory, options.host, options.port, `reconnectionToken=${options.reconnectionToken}&reconnection=${options.reconnectionProtocol ? 'true' : 'false'}`, `renderer-${connectionTypeToString(connectionType)}-${options.reconnectionToken}`, timeoutCancellationToken);

0 commit comments

Comments
 (0)