mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
15 lines
264 B
Text
15 lines
264 B
Text
global hello: event(c : count);
|
|
|
|
global c = 0;
|
|
|
|
event tick()
|
|
{
|
|
Cluster::publish("zeek.bridge.test", hello, ++c);
|
|
schedule 1.0sec { tick() };
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
Cluster::listen_websocket([$listen_addr=127.0.0.1, $listen_port=8000/tcp]);
|
|
event tick();
|
|
}
|