Thank you.
==[ host node dmz_relay.js ]==
$ node dmz_relay.js
======================================================
[dVFS] Initialization Options Available:
B 1. Environment Variables: DMZ_RELAY_LISTEN_ADDRESS, DMZ_RELAY_LISTEN_PORT
B 2. Config Files Checked: ./dmz_relay_cfg.json, ../dmz_relay_cfg.json
B 3. Defaults: host="0.0.0.0", port=8080
======================================================
[dVFS] Current Config Source: /mnt/mesh_shared/MESH/GEM/Remote/LPC/GEM/dmz_rela
y_cfg.json
[dVFS] Attempting to bind to 0.0.0.0:1777
[dVFS] Rebuilding state from /mnt/mesh_shared/MESH/GEM/Remote/LPC/GEM/DMZ_RELAY
/mesh_archive.jsonl...
[dVFS] State rebuilt successfully. Replayed 1 events. Tracking 1 active files.
[dVFS] Relay Node successfully running on ws://0.0.0.0:1777
[dVFS] Client connected from 127.0.0.1
==[ Browser A ]==
Type 'help' for a list of commands.
--- LPC WEBASSEMBLY VM BOOTED ---
[DMZ] Incoming sync applied: /mud/areas/town_square.json
eval load_object("tests/mesh_test")
Result: <object:tests/mesh_test>
eval load_object("tests/mesh_test")->increment("Browser_A")
State bumped! Counter: 1, User: Browser_A
Result: undefined
==[ host dmz_relay.js ]==
[dVFS] Client connected from 127.0.0.1
[dVFS] Client connected from 127.0.0.1
[MESH] Routed mutation for tests/mesh_test on property [counter]
[MESH] Routed mutation for tests/mesh_test on property [last_user]
[MESH] Routed mutation for tests/mesh_test on property [counter]
[MESH] Routed mutation for tests/mesh_test on property [last_user]
[MESH] Routed mutation for tests/mesh_test on property [counter]
[MESH] Routed mutation for tests/mesh_test on property [last_user]
==[ Browser B ]==
Type 'help' for a list of commands.
--- LPC WEBASSEMBLY VM BOOTED ---
[DMZ] Incoming sync applied: /mud/areas/town_square.json
eval load_object("tests/mesh_test")
Result: <object:tests/mesh_test>
eval load_object("tests/mesh_test")->display()
Current Network State -> Counter: 0, Last User: nobody
Result: undefined
==
Thank you.
==[ host node dmz_relay.js ]==
$ node dmz_relay.js
======================================================
[dVFS] Initialization Options Available:
B 1. Environment Variables: DMZ_RELAY_LISTEN_ADDRESS, DMZ_RELAY_LISTEN_PORT
B 2. Config Files Checked: ./dmz_relay_cfg.json, ../dmz_relay_cfg.json
B 3. Defaults: host="0.0.0.0", port=8080
======================================================
[dVFS] Current Config Source: /mnt/mesh_shared/MESH/GEM/Remote/LPC/GEM/dmz_rela
y_cfg.json
[dVFS] Attempting to bind to 0.0.0.0:1777
[dVFS] Rebuilding state from /mnt/mesh_shared/MESH/GEM/Remote/LPC/GEM/DMZ_RELAY
/mesh_archive.jsonl...
[dVFS] State rebuilt successfully. Replayed 1 events. Tracking 1 active files.
[dVFS] Relay Node successfully running on ws://0.0.0.0:1777
[dVFS] Client connected from 127.0.0.1
==[ Browser A ]==
Type 'help' for a list of commands.
--- LPC WEBASSEMBLY VM BOOTED ---
[DMZ] Incoming sync applied: /mud/areas/town_square.json
eval load_object("tests/mesh_test")
Result: <object:tests/mesh_test>
eval load_object("tests/mesh_test")->increment("Browser_A")
State bumped! Counter: 1, User: Browser_A
Result: undefined
==[ host dmz_relay.js ]==
[dVFS] Client connected from 127.0.0.1
[dVFS] Client connected from 127.0.0.1
[MESH] Routed mutation for tests/mesh_test on property [counter]
[MESH] Routed mutation for tests/mesh_test on property [last_user]
[MESH] Routed mutation for tests/mesh_test on property [counter]
[MESH] Routed mutation for tests/mesh_test on property [last_user]
[MESH] Routed mutation for tests/mesh_test on property [counter]
[MESH] Routed mutation for tests/mesh_test on property [last_user]
==[ Browser B ]==
Type 'help' for a list of commands.
--- LPC WEBASSEMBLY VM BOOTED ---
[DMZ] Incoming sync applied: /mud/areas/town_square.json
eval load_object("tests/mesh_test")
Result: <object:tests/mesh_test>
eval load_object("tests/mesh_test")->display()
Current Network State -> Counter: 0, Last User: nobody
Result: undefined
==
I had pre-loaded both A and B with this:
==
eval load_object("tests/mesh_test")
==
Testing to re-increment and follow it with wsocat:
==
$ wscat -c ws://127.0.0.1:1777
Connected (press CTRL+C to quit)
< {"type":"VFS_WRITE","path":"/mud/areas/town_square.json","data":"{\"mobs\":[\
"guard_1\"]}","timestamp":1725535000000}
< {"type":"CRDT_MUTATION","object_id":"tests/mesh_test","topic":"sync_test_topi
c","property":"counter","value":2,"timestamp":1788612977331}
< {"type":"CRDT_MUTATION","object_id":"tests/mesh_test","topic":"sync_test_topi
c","property":"last_user","value":"Browser_A","timestamp":1788612977331}
>