policy/frameworks/cluster/websocket/server.zeek

Script to load for running a single WebSocket server.

This script is mostly meant for ad-hoc testing. In a Zeekctl environment, the UseWebSocket option should be used instead.

Note that if Cluster::backend is CLUSTER_BACKEND_NONE at the time this script is loaded, it loads the ZeroMQ cluster backend and starts a locally running XPUB/XSUB proxy thread. If you instead want to use Broker’s hub functionality instead, load policy/frameworks/cluster/backend/broker before loading this script.

Note also that this script will raise a fatal error if the cluster backend is Cluster::CLUSTER_BACKEND_NONE, but Cluster::nodes is populated with entries.

Imports:

base/frameworks/cluster, base/utils/numbers.zeek, policy/frameworks/cluster/backend/zeromq

Summary

Redefinitions

Cluster::Backend::ZeroMQ::run_proxy_thread: bool &redef

Detailed Interface