File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1313* The streaming client now also sends state change events out. Usage example:
1414
1515 ``` 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} " )
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} " )
2626 ```
2727
2828# # Bug Fixes
You can’t perform that action at this time.
0 commit comments