Docs
emitters
user-change

Description

An event fired when a user changes their current profile. This indicates that the existing address might not be accessible.


Usage

  sdk.on('user-change', (user: BasicUser) => fn)

Data

// BasicUser
  username: string;
  type: string;
  slug?: string;
  developer: boolean;

Example

    sdk.on(EVENTS.USER_CHANGE, (user) =>
      handleUpdate(EVENTS.USER_CHANGE + "\r\n" + JSON.stringify(user))
    );