File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 1111## New Features
1212
1313* The streaming client now also sends state change events out. Usage example:
14- ``` python
15- recv = streamer.new_receiver()
16-
17- for msg in recv:
18- match msg:
19- case StreamStartedEvent():
20- print (" Stream started" )
21- case StreamStoppedEvent() as event:
22- print (f " Stream stopped, reason { event.exception} , retry in { event.retry_time} " )
23- case int () as output:
24- print (f " Received message: { output} " )
25- ```
14+
15+ ``` python
16+ recv = streamer.new_receiver()
17+
18+ for msg in recv:
19+ match msg:
20+ case StreamStartedEvent():
21+ print (" Stream started" )
22+ case StreamStoppedEvent() as event:
23+ print (f " Stream stopped, reason { event.exception} , retry in { event.retry_time} " )
24+ case int () as output:
25+ print (f " Received message: { output} " )
26+ ```
2627
2728# # Bug Fixes
2829
You can’t perform that action at this time.
0 commit comments