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 is mostly just probably means refactoring a copy of little, so a client can use its "get the main section log messages" logic with one or two lines of, with code, and do its own thing instead of "print json.dumps(ev)" and the "subscribe to extra stuff" functionality replaced with something simple like @print "new collection arrived: %s" % uuid@
# a longer but more useful example of that same pattern which brings up actually reconfigures/restarts a web service based on what it sees there. Example: E.g., look up the most recent collection in the project, shut down the old/existing docker container "foo", and start up a new one, passing docker container "foo" and pass it the portable_data_hash of the most recently added/updated collection.
collection's portable_data_hash.