method Socket.prototype.once
#Socket.prototype.once(event: string,listener: (...args: any[]) => void,): this
#Socket.prototype.once(event: "close",listener: () => void,): this
#Socket.prototype.once(event: "connect",listener: () => void,): this
#Socket.prototype.once(event: "error",listener: (err: Error) => void,): this
#Socket.prototype.once(event: "listening",listener: () => void,): this
#Socket.prototype.once(event: "message",listener: (msg: Buffer,rinfo: RemoteInfo,) => void,): this
Parameters #
#event: "message"
#listener: (msg: Buffer,rinfo: RemoteInfo,) => void
Return Type #
this