feat: ws模块新增ssh和telnet类型连接

This commit is contained in:
TsMask
2024-02-26 12:02:19 +08:00
parent af93652e3d
commit 299eb9d24a
7 changed files with 273 additions and 19 deletions

View File

@@ -12,9 +12,14 @@ type IWS interface {
// UpgraderWs http升级ws请求
UpgraderWs(w http.ResponseWriter, r *http.Request) *websocket.Conn
// NewClient 新建客户端 uid 登录用户ID
NewClient(uid string, gids []string, conn *websocket.Conn) *model.WSClient
// NewClient 新建客户端
//
// uid 登录用户ID
// groupIDs 用户订阅组
// conn ws连接实例
// childConn 子连接实例
NewClient(uid string, groupIDs []string, conn *websocket.Conn, childConn any) *model.WSClient
// CloseClient 客户端关闭
// CloseClient 关闭客户端
CloseClient(clientID string)
}