Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsWebSocketUpgrade func(r *http.Request) bool = websocket.IsWebSocketUpgrade
IsWebSocketUpgrade 是否是WebSocket请求?
Functions ¶
func PolyfillWebSocketRequest ¶
PolyfillWebSocketRequest
此函数是为了避免情况: 代理(e.g.Nginx)没有设置WebSocket穿透,导致WebSocket服务收到的WebSocket请求的header有问题.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.