cluster/websocket: Remove comment about broker

This commit is contained in:
Arne Welzel 2025-04-15 15:18:55 +02:00
parent 0c8f52664d
commit b9569cb06f

View file

@ -257,18 +257,7 @@ void WebSocketEventDispatcher::QueueReply(WebSocketReply&& reply) {
reply_msg_thread->SendIn(new ReplyInputMessage(std::move(reply))); reply_msg_thread->SendIn(new ReplyInputMessage(std::move(reply)));
} }
// WebSocketDemux::Process() runs in the main thread. // Process a WebSocketEvent message on the Zeek IO loop.
//
// XXX: How is this going to work with class broker? With
// ZeroMQ, each WebSocket client has its own XPUB/XSUB
// connectivity to a central broker and similarly with NATS.
// But with broker we need to do something different.
// Maybe connect to the local endpoint.
//
// We cannot actually instantiate a Broker backend :-(
//
// We could also have InitPostScript() recognize Broker
// and start its internal server instead.
void WebSocketEventDispatcher::Process(const WebSocketEvent& event) { void WebSocketEventDispatcher::Process(const WebSocketEvent& event) {
std::visit([this](auto&& arg) { Process(arg); }, event); std::visit([this](auto&& arg) { Process(arg); }, event);
} }