hololinked.core.events.Event
Asynchronously push arbitrary messages to clients. Apart from default events created by the package (like state
change event, observable properties etc.), events are supposed to be created at class level or at __init__
as a instance attribute, otherwise their publishing socket is unbound and will lead to AttributeError
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
name of the event, specified name may contain dashes and can be used on client side to subscribe to this event. |
required | |
|
Optional[str]
|
docstring for the event |
None
|
|
Optional[JSON]
|
schema of the event, if the event is JSON complaint. HTTP clients can validate the data with this schema. There is no validation on server side. |
None
|