mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 03:55:18 +02:00
Move connection logic into connection class
- Moved everything I could into the class itself. - Improve the logging situation a bit. - Switch some trace logs to debug. - Get debug port from message arguments.
This commit is contained in:
@@ -130,12 +130,12 @@ export class Protocol extends PersistentProtocol {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get inflateBytes in base64 format from the current socket.
|
||||
* Get inflateBytes from the current socket.
|
||||
*/
|
||||
public get inflateBytes(): string | undefined {
|
||||
public get inflateBytes(): Uint8Array | undefined {
|
||||
const socket = this.getSocket();
|
||||
return socket instanceof WebSocketNodeSocket
|
||||
? Buffer.from(socket.recordedInflateBytes.buffer).toString('base64')
|
||||
? socket.recordedInflateBytes.buffer
|
||||
: undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user