method Server.prototype.emitServer.prototype.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return TypebooleanServer.prototype.emit(event: "close"): booleanDeprecatedParametersevent: "close"Return TypebooleanServer.prototype.emit(event: "connection",socket: Socket,): booleanDeprecatedParametersevent: "connection"socket: SocketReturn TypebooleanServer.prototype.emit(event: "error",err: Error,): booleanDeprecatedParametersevent: "error"err: ErrorReturn TypebooleanServer.prototype.emit(event: "listening"): booleanDeprecatedParametersevent: "listening"Return TypebooleanServer.prototype.emit(event: "drop",data?: DropArgument,): booleanDeprecatedParametersevent: "drop"optionaldata: DropArgumentReturn Typeboolean