There is currently not a way to tell lo_modules.LOConnection to open or close. Currently, the functionality is handled in on initialization and when the data_scope value changes. We ought to have some property that can be called to manually open or close the socket.
Likely best to create new props and check if they changed in componentDidUpdate.
Update 10/28/24:
We are slowly transitioning away from Dash in Python toward using NextJS instead. We have a new LO Connection component in lo_event/lo_assess/LOConnection (#180) which should use this feature instead.
There is currently not a way to tell
lo_modules.LOConnectionto open or close. Currently, the functionality is handled in on initialization and when thedata_scopevalue changes. We ought to have some property that can be called to manually open or close the socket.Likely best to create new props and check if they changed in
componentDidUpdate.Update 10/28/24:
We are slowly transitioning away from Dash in Python toward using NextJS instead. We have a new LO Connection component in
lo_event/lo_assess/LOConnection(#180) which should use this feature instead.