completely isolate the socket api from the main realy

This commit is contained in:
2025-04-12 07:32:23 -01:06
parent 0b6a4a3743
commit 679a89d78c
10 changed files with 129 additions and 115 deletions

12
socketapi/upgrader.go Normal file
View File

@@ -0,0 +1,12 @@
package socketapi
import (
"net/http"
"github.com/fasthttp/websocket"
)
var Upgrader = websocket.Upgrader{ReadBufferSize: 1024, WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
}}