Optional
attributes?: string[]Optional
context?: stringThis will use an existing liveState instance that has been provided with the given name, rather than creating one.
Optional
events?: { Optional
receive?: string[]Optional
send?: string[]Optional
params?: objectwill be sent as params on channel join
Optional
properties?: string[]A list of property names, each of which will be updated from the state on any state chnages.
Optional
provide?: { This will create an instance in the given scope with the specified name. For
example, a scope of window
and a name of liveState
will create window.liveState
Instances so provided can be found by other elements using a context
attribute
whose value matches the name
used by the provider. This will work regardless of
which element occurs first (or highest) in the DOM
Optional
topic?: stringThe topic for the channel
Optional
url?: stringThe end point to connect to, should be a websocket url (ws or wss)
Generated using TypeDoc
A list of attribute names, each of which will be updated from the state on any state chnages.