completely isolate the socket api from the main realy
This commit is contained in:
12
socketapi/upgrader.go
Normal file
12
socketapi/upgrader.go
Normal 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
|
||||
}}
|
||||
Reference in New Issue
Block a user