merge(wavelet): sync upstream changes

This commit is contained in:
ryan
2026-09-03 09:29:28 +08:00
220 changed files with 12924 additions and 15487 deletions
@@ -12,6 +12,8 @@ import (
"time"
"github.com/gin-gonic/gin"
"Wavelet/pkg/util"
)
const (
@@ -64,7 +66,7 @@ func ServeAgent(c *gin.Context, nodeID string, onStatus AgentStatusHandler) {
slog.Debug("agent ws connected", "node_id", nodeID, "remote", client.remoteAddr)
go client.writePump()
util.Go(client.writePump)
client.readPump()
}
@@ -8,6 +8,8 @@ import (
"sync"
"github.com/gin-gonic/gin"
"Wavelet/pkg/util"
)
const (
@@ -51,7 +53,7 @@ func ServeFlared(c *gin.Context, nodeID string) {
slog.Debug("flared ws connected", "node_id", nodeID, "remote", c.Request.RemoteAddr)
go client.writePump()
util.Go(client.writePump)
client.readPump()
}
@@ -8,6 +8,8 @@ import (
"sync"
"github.com/gin-gonic/gin"
"Wavelet/pkg/util"
)
// RelayWSConnectedLastSeenValue is the sentinel last_seen_at value when relay WS is connected.
@@ -45,7 +47,7 @@ func ServeRelay(c *gin.Context, nodeID string) {
slog.Debug("relay ws connected", "node_id", nodeID, "remote", c.Request.RemoteAddr)
go client.writePump()
util.Go(client.writePump)
client.readPump()
}