fix
This commit is contained in:
parent
265fd81b27
commit
32e954ccc8
|
@ -42,6 +42,7 @@ var (
|
||||||
}
|
}
|
||||||
//升级websocket
|
//升级websocket
|
||||||
upgrade = websocket.Upgrader{
|
upgrade = websocket.Upgrader{
|
||||||
|
ReadBufferSize: 1024 * 10, //最大可读取大小 10M
|
||||||
//握手超时时间15s
|
//握手超时时间15s
|
||||||
HandshakeTimeout: time.Second * 15,
|
HandshakeTimeout: time.Second * 15,
|
||||||
//允许跨域
|
//允许跨域
|
||||||
|
|
Loading…
Reference in New Issue
Block a user