This decorator, introduced in version 0.8.0, adds the ability to have live state config properties be contributed by the element instance. They will override values from the liveState decorator on the class, if used.
This will cause the the-url attribute of the element to be used as the url to connect to, and the api-key attribute to be passed as an api_key parameter to the channel join.
This decorator, introduced in version 0.8.0, adds the ability to have live state config properties be contributed by the element instance. They will override values from the
liveState
decorator on the class, if used.Example:
This will cause the
the-url
attribute of the element to be used as the url to connect to, and theapi-key
attribute to be passed as anapi_key
parameter to the channel join.