Story #4904

Updated by Tom Clegg over 5 years ago

# a really really short Python program that uses a super convenient SDK library call to listen to websockets, waits for a specific event type, and prints "foo"
#* this probably means refactoring ws.py a little, so a client can use its "get the log messages" logic with one or two lines of code, and do its own thing instead of "print json.dumps(ev)"
# a longer but more useful example of that same pattern which actually reconfigures/restarts a web service based on what it sees there. E.g., look up the most recent collection in the project, shut down docker container "foo", start a new docker container "foo" and pass it the collection's portable_data_hash.

Back