From cb02cdb6b838ab298cb769e7a4ccc832cf66ae26 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 11:18:29 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example on handleWSUpgrade The comment "handleWSUpgrade handles incoming WebSocket connections" restated the function signature without adding information. Replaced with a concrete call-site example showing how the method is wired in via Start(). Co-Authored-By: Charon --- pkg/node/transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/node/transport.go b/pkg/node/transport.go index f94441c..de895b3 100644 --- a/pkg/node/transport.go +++ b/pkg/node/transport.go @@ -411,7 +411,7 @@ func (t *Transport) GetConnection(peerID string) *PeerConnection { return t.conns[peerID] } -// handleWSUpgrade handles incoming WebSocket connections. +// mux.HandleFunc(cfg.WSPath, t.handleWSUpgrade) // registered in NewTransport via Start() func (t *Transport) handleWSUpgrade(w http.ResponseWriter, r *http.Request) { // Enforce MaxConns limit (including pending connections during handshake) t.mutex.RLock()