Constructor
new SSESessionStrategy(session, sdk)
Create a new SSE session strategy
Parameters:
| Name | Type | Description |
|---|---|---|
session | Session | The session instance |
sdk | AssisfySDK | The SDK instance |
Members
eventSource :EventSource
Type:
- EventSource
sdk :AssisfySDK
Type:
session :Session
Type:
sessionId :string
Type:
- string
Methods
close()
Close the event source connection
(async) handleInput(inputopt) → {Promise.<void>}
Handle user input
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
input | string | <optional> | '' | The user input |
Returns:
- Type:
- Promise.<void>
(async) handlePermissionRequest(grantedopt) → {Promise.<void>}
Handle a permission request
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
granted | boolean | <optional> | false | Whether to grant the permission |
Returns:
- Type:
- Promise.<void>