1
0
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:
Makis Maropoulos
2016-06-16 20:08:59 +03:00
parent 647f0d704c
commit 0d482508fc
4 changed files with 30 additions and 18 deletions

View File

@@ -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
}