Docs
emitters
response

Description

An event fired when a response is received from the extension.


Usage

  sdk.on('response', (resp:Response) => fn)

Data

resp: Response
// resp structure will vary depending on the type of the event

See here (opens in a new tab) for Response typing


Example

    sdk.on(EVENTS.RESPONSE, (resp) => {
      handleUpdate(EVENTS.RESPONSE + "\r\n" + JSON.stringify(resp));
    });