mirror of
https://github.com/coder/code-server.git
synced 2025-07-28 20:43:24 +08:00
Handle permessage-deflate on sockets
With this the extension host is working again.
This commit is contained in:
@ -120,7 +120,7 @@ export class Vscode {
|
||||
};
|
||||
}
|
||||
|
||||
public async handleWebSocket(socket: net.Socket, query: Query): Promise<true> {
|
||||
public async handleWebSocket(socket: net.Socket, query: Query, _permessageDeflate: boolean): Promise<true> {
|
||||
if (!query.reconnectionToken) {
|
||||
throw new Error('Reconnection token is missing from query parameters');
|
||||
}
|
||||
@ -128,6 +128,7 @@ export class Vscode {
|
||||
reconnectionToken: <string>query.reconnectionToken,
|
||||
reconnection: query.reconnection === 'true',
|
||||
skipWebSocketFrames: query.skipWebSocketFrames === 'true',
|
||||
// TODO: permessageDeflate,
|
||||
});
|
||||
try {
|
||||
await this.connect(await protocol.handshake(), protocol);
|
||||
|
Reference in New Issue
Block a user