@ac-essentials/misc-util
    Preparing search index...

    Type Alias DgramSocketEvents

    Event map for DgramSocket socket-specific events.

    type DgramSocketEvents = {
        close: [];
        connect: [];
        error: [error: IError];
        listening: [];
        message: [msg: Buffer, msgSize: number, from: InetEndpoint];
    }
    Index

    Properties

    close: []

    Emitted when the socket is closed.

    connect: []

    Emitted after a socket is addressed using bind().

    error: [error: IError]

    Emitted when an error occurs.

    listening: []

    Emitted when the socket is ready to receive data.

    message: [msg: Buffer, msgSize: number, from: InetEndpoint]

    Emitted when a new datagram is available on a socket.

    The message buffer received

    The size of the message in bytes

    The sender's endpoint information (address, port, and family)