mirror of
https://github.com/yudai/gotty.git
synced 2026-03-07 22:22:34 +01:00
ws: enable factory to react to state of ws conn
This commit is contained in:
parent
29695481fa
commit
42d8a51a93
3 changed files with 7 additions and 3 deletions
|
|
@ -115,8 +115,9 @@ func (server *Server) processWSConn(ctx context.Context, conn *websocket.Conn) e
|
|||
return errors.Wrapf(err, "failed to parse arguments")
|
||||
}
|
||||
params := query.Query()
|
||||
|
||||
var slave Slave
|
||||
slave, err = server.factory.New(params)
|
||||
slave, err = server.factory.New(params, conn)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to create backend")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue