Classes
- AlertRule
- Connection
- Error
- Field
- Permission
- Query
- QueryProperties
- QuerySubscription
- Schema
- Table
- Tuple
Methods
(static) closeAllConnections(settings) → {Promise.<void>}
Closes all currently active LiveView connections
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object | Object containing the settings for performing the connection
Properties
|
Returns:
-- Promise representing the result of the closeAllConnections function. Upon successfully closing all connections, the promise will be resolved and the resolution handler will be invoked with no arguments. If closing connections fails, the promise will be rejected and the rejection handler will be passed an
Error
object with details about what went wrong.
- Type
- Promise.<void>
(static) connect(settingsopt) → {Promise.<LiveView.Connection>}
Connects to the LiveView server. If no settings are provided, the function will attempt to connect to the
the host identified by the current window location via the path '/lv/client'. The protocols used by the
LiveView connection will correspond to the protocol used by window.location. If window.location specifies
HTTPS as its protocol, then commands issued to LiveView will also be sent via HTTPS and all traffic sent or
received via WebSocket will also be done via a secure connection.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object |
<optional> |
Object containing the settings for performing the connection
Properties
|
Returns:
-- Promise representing the result of the connect function. Upon successful connection, the promise will be resolved and the resolution handler function will be passed a
Connection
object that represents the opened connection. If the connection fails, the promise will be rejected and the rejection handler will be passed an Error
object with details about what went wrong.
- Type
- Promise.<LiveView.Connection>