mirror of
https://github.com/yudai/gotty.git
synced 2026-01-25 02:36:10 +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
|
|
@ -2,6 +2,8 @@ package server
|
|||
|
||||
import (
|
||||
"github.com/ghthor/gotty/v2/webtty"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
// Slave is webtty.Slave with some additional methods.
|
||||
|
|
@ -13,5 +15,5 @@ type Slave interface {
|
|||
|
||||
type Factory interface {
|
||||
Name() string
|
||||
New(params map[string][]string) (Slave, error)
|
||||
New(params map[string][]string, conn *websocket.Conn) (Slave, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue