Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Upgrader = websocket.Upgrader{
CheckOrigin: func(r *http.Request) bool {
return true
},
}
Functions ¶
This section is empty.
Types ¶
type StreamHandler ¶
type StreamHandler struct {
WsConn *WsConnection
ResizeEvent chan *remotecommand.TerminalSize
}
type WsConnection ¶
type WsConnection struct {
OnClose func()
// contains filtered or unexported fields
}
func InitWebsocket ¶
func InitWebsocket(resp http.ResponseWriter, req *http.Request) (*WsConnection, error)
Click to show internal directories.
Click to hide internal directories.