You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can subscribe to the event using the attribute name:
14
16
15
17
=== "threaded"
@@ -48,7 +50,9 @@ One can subscribe to the event using the attribute name:
48
50
)
49
51
```
50
52
51
-
The callback function(s) must accept a single argument which is the event data payload, an instance of `SSE` object. The payload can be accessed as using the `data` attribute:
53
+
---
54
+
55
+
The callback function(s) must accept a single argument - an instance of `SSE` object. The payload can be accessed as using the `data` attribute:
> The `SSE` object also contains metadata like `id`, `event` name and `retry` interval, but these are currently not well supported. Improvements in the future are expected.
59
63
60
-
Each subscription creates a new event stream. One can also supply multiple callbacks which may called in series or concurrently:
64
+
---
65
+
66
+
Each subscription creates a new event stream. One can also supply multiple callbacks which may be called in series or concurrently:
61
67
62
68
=== "sequential"
63
69
@@ -130,7 +136,7 @@ All subscriptions to the same event are removed.
130
136
131
137
## Payload Schema
132
138
133
-
Schema may be supplied for the validation of the event data on the client using pydantic or JSON schema:
139
+
Schema for the payload may be supplied using pydantic or JSON schema:
To be updated after integration with opentelemetry & EFK stack. See [issues](https://github.com/hololinked-dev/hololinked/issues?q=is%3Aissue%20state%3Aopen%20milestone%3A%22logging%2C%20metrics%20and%20traces%22).
26
+
27
+
<!--
24
28
25
29
To stream the logs remotely, specify `remote_access_handler=True` while instantiating the `Thing`.
26
30
@@ -58,8 +62,10 @@ class MyThing(Thing):
58
62
self.logger.info("Thing initialized with properties from DB")
59
63
```
60
64
61
-
### Schema Validator
62
-
63
65
### Meta
64
66
67
+
To be updated with use cases of modifying Thing metaclass.
68
+
65
69
### Composition
70
+
71
+
To be updated with using sub-things within a Thing.
Our [contribution guidelines](https://github.com/hololinked-dev/hololinked/blob/main/CONTRIBUTING.md) may also help. There are also [weekly office hours](https://github.com/hololinked-dev#monthly-meetings) & [discord group](https://discord.com/invite/kEz87zqQXh) (currently no participants).
31
+
Our [contribution guidelines](https://github.com/hololinked-dev/hololinked/blob/main/CONTRIBUTING.md) may also help, especially for new contributors & setting up development environments. There are also [weekly office hours](https://github.com/hololinked-dev#monthly-meetings) & [discord group](https://discord.com/invite/kEz87zqQXh) (currently no participants).
0 commit comments