897 B
Task 1 Part 1
Implement a simple visualiser that can be used to visualise the messages that are being relayed by the Waku nodes.
It should use a WebUI to view the state of the entire network, allowing you to see for example a big organised grid of 50 nodes which all light up when a message is injected into the system (assuming a 50 node deployment)
It will use a NodeJS server to query logs and then use a websocket to tell the web browser which nodes to light up which colours.
For NOW please load logsexample.out to get logs until you do part 2
You (the NodeJS server) should keep a cache of uniquely identified log messages - a log line with the same msg_hash= and receivedTime= is the same log
Task 1 Part 2
You (the NodeJS server) can query curl https://vmselect.riff.cc/select/logsql/query -d 'query=_time:5s relay received' every 3 seconds to see the last 5 seconds of logs.