mirror of
https://github.com/yudai/gotty.git
synced 2026-01-20 16:26:10 +01:00
bug: fix issues w/ closed connection not closing running process
This commit is contained in:
parent
71b9db14e2
commit
c830287cb0
4 changed files with 12 additions and 8 deletions
|
|
@ -1,6 +1,8 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/ghthor/gotty/v2/webtty"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
|
|
@ -15,5 +17,5 @@ type Slave interface {
|
|||
|
||||
type Factory interface {
|
||||
Name() string
|
||||
New(params map[string][]string, conn *websocket.Conn) (Slave, error)
|
||||
New(ctx context.Context, params map[string][]string, conn *websocket.Conn) (Slave, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue