mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Migrate to private class properties/methods
This commit is contained in:
@@ -56,7 +56,7 @@ export abstract class CDSSocketBase<
|
||||
this.logger = options.logger;
|
||||
this.socket = options.socket;
|
||||
|
||||
this.socketIterator = this.iterateSocket();
|
||||
this.socketIterator = this.#iterateSocket();
|
||||
}
|
||||
|
||||
public async close(code: number, reason: string): Promise<void> {
|
||||
@@ -161,7 +161,7 @@ export abstract class CDSSocketBase<
|
||||
// Private
|
||||
//
|
||||
|
||||
private iterateSocket(): AsyncIterator<Buffer> {
|
||||
#iterateSocket(): AsyncIterator<Buffer> {
|
||||
const stream = new Readable({ read: noop, objectMode: true });
|
||||
|
||||
this.socket.on('message', ({ type, binaryData }) => {
|
||||
|
||||
Reference in New Issue
Block a user