Home > assistive-playwright-client > ScreenReaderClient > on
Registers a listener for the close
event, that will be called when the connection to the screen reader is closed
Signature:
on(event: "close", listener: () => void): this;
Parameter | Type | Description |
---|---|---|
event | “close” | "close" |
listener | () => void | function to be called with the errorThe listener can removed with ScreenReaderClient.off(). |
Returns:
this