@enreachde/swyx-web-extension-sdk - v1.0.1 / Exports / IWebExtensionConnection
Interface: IWebExtensionConnection
WebExtension connection contract combining base connection lifecycle methods with strongly typed hub request sending.
Table of contents
Methods
Methods
Connect
▸ Connect(): Promise<void>
Initiates the connection to the WebExtension host. Must be called before sending any requests.
Returns
Promise<void>
Disconnect
▸ Disconnect(reason, preventReconnect): Promise<void>
Disconnects from the WebExtension host and stops all request and event handling.
Parameters
| Name | Type |
|---|---|
reason | ConnectionReason |
preventReconnect | boolean |
Returns
Promise<void>