mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-27 18:57:04 +02:00
chore: increase websocket interval for debug api
This commit is contained in:
@@ -50,7 +50,7 @@ func jsonHandler[T debuggable](getData iter.Seq2[string, T]) http.HandlerFunc {
|
|||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
gpwebsocket.DynamicJSONHandler(w, r, func() []map[string]any {
|
gpwebsocket.DynamicJSONHandler(w, r, func() []map[string]any {
|
||||||
return toSortedSlice(getData)
|
return toSortedSlice(getData)
|
||||||
}, 1*time.Second)
|
}, 200*time.Millisecond)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user