mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 04:51:56 +00:00
added subprotocols to server config (#652)
Former-commit-id: c4793e7355d393bb479c69fc8f4f7ae65bc3668d
This commit is contained in:
committed by
Gerasimos (Makis) Maropoulos
parent
323beaa70e
commit
da6f515078
@@ -184,7 +184,7 @@ func (s *server) Handler() iris.HandlerFunc {
|
||||
// build the upgrader once
|
||||
c := s.config
|
||||
|
||||
upgrader := websocket.Upgrader{ReadBufferSize: c.ReadBufferSize, WriteBufferSize: c.WriteBufferSize, Error: c.Error, CheckOrigin: c.CheckOrigin}
|
||||
upgrader := websocket.Upgrader{ReadBufferSize: c.ReadBufferSize, WriteBufferSize: c.WriteBufferSize, Error: c.Error, CheckOrigin: c.CheckOrigin , Subprotocols:c.Subprotocols}
|
||||
return func(ctx *iris.Context) {
|
||||
// Upgrade upgrades the HTTP server connection to the WebSocket protocol.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user