Home > assistive-playwright-client > ScreenReaderClient > once
Registers a one-time listener for the close event, that will be called when the connection to the screen reader is closed
Signature:
once(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