manus4oHER's picture
Upload folder using huggingface_hub
eee16fe verified
Raw
History Blame Contribute Delete
534 Bytes
import { ConnectionStateEnum } from '../../../core/enum/ConnectionStateEnum';
import Connection from '../../../core/interface/networking/Connection';
export default class AuthConnection extends Connection {
onHandshakeSuccess() {
this.logger.info('[HANDSHAKE] Finished');
this.setState(ConnectionStateEnum.AUTH);
}
send<T>(packet: T & { pack: () => Buffer; getName: () => string }) {
this.logger.debug(`[OUT][PACKET] name: ${packet.getName()}`);
this.socket.write(packet.pack());
}
}