Initialize Worker with Subscriber Socket
worker_init.RdSets up a worker process to receive grid state updates via nanonext. Called once per worker at startup.
Details
Creates a subscriber socket that listens for pixel update broadcasts from the main process. Also initializes a local cache to store the current set of black pixels and grid state version.
The cache is used to avoid querying the main process for grid state on every walker step. Workers check for updates periodically and refresh the cache when the version number changes.