hololinked.core.events.Event
Asynchronously push arbitrary messages to clients (as-in messages that cannot be properly timed) without the client requesting the data every time. Events are pushed from the server to the clients that have subscribed to them.
Source code in hololinked/hololinked/core/events.py
Functions
__init__
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str | None
|
docstring for the event |
None
|
|
JSON | None
|
schema of the event |
None
|
|
str | None
|
a descriptive label for the event, to be shown in a GUI for example. |
None
|
Source code in hololinked/hololinked/core/events.py
to_affordance
Generates a EventAffordance TD fragment for this Event
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Any
|
The instance of the owning |
None
|
Returns:
| Type | Description |
|---|---|
EventAffordance
|
the affordance TD fragment for this event |