src/1_socket/message-socket.ts
Function constructor
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(port: number | Socket, ip = '') {
super()
if (port instanceof Socket) {
this.socket = port
} else {
Function addEventListener
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addEventListener(
method: string | symbol,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
listener: { (...args: any[]): void; call?: any }
) {