• Exchange a sync message.

    You have to call this on both sides of the connection. One side with 'waits' set to true, one with 'waits' set to false. The one with 'waits' set to true will wait for the other side to send the sync message.

    Parameters

    • conn: default

      The connection used to exchange the connection group name.

    • waits: boolean

      If true, then the code waits for the other side to do the same call with this set to false.

    Returns Promise<void>