• Overrides the default peer ID. Must be called before connecting to a broker. Overriding the ID may have unwanted consequences. Do not use this feature unless you really know what you are doing.

    Parameters

    • id: string

      The peer ID to use when connecting to a broker.

    Returns void