mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +00:00
Add ReadBufferSize and WriteBufferSize to the iris-ws, disable header copy also
This commit is contained in:
@@ -73,7 +73,7 @@ func newServer(c *config.Websocket) *server {
|
||||
onConnectionListeners: make([]ConnectionFunc, 0),
|
||||
}
|
||||
|
||||
s.upgrader = websocket.New(s.handleConnection)
|
||||
s.upgrader = websocket.Custom(s.handleConnection, s.config.ReadBufferSize, s.config.WriteBufferSize, false)
|
||||
go s.serve() // start the server automatically
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user