Function estimateMessagePrefixLength

  • Estimate the length of the message the actual server will send to clients, you can use this information to truncate/split your messages.

    :nickname!username@hostname command args :trailing\r\n

    Returns

    Predictive length of the message without the trailing

    Parameters

    • options: IIRCOptions

      IRC options (nick, hostname, username)

    • command: string

      Command to be sent

    • args: string[]

      Arguments for the command

    Returns number

Generated using TypeDoc