Migrate to private class properties/methods

This commit is contained in:
Jamie Kyle 2025-01-14 11:11:52 -08:00 committed by GitHub
commit aa9f53df57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
100 changed files with 3795 additions and 3944 deletions

View file

@ -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 }) => {