Unverified Commit accd0e67 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #51 from jumpserver/dev

Dev
parents f502a139 629f8793
......@@ -3,10 +3,6 @@
koko是golang版本的的coco;重构了coco的SSH/SFTP服务和web terminal服务。
## 注意
Koko的 web socket库不再使用socket.io,因为go里没有稳定的,替换成了[neffos](https://github.com/kataras/neffos),
所以luna不再和原来兼容,请下载luna的koko版本
## 主要功能
......
......@@ -235,12 +235,11 @@ func OnResizeHandler(c *neffos.NSConn, msg neffos.Message) (err error) {
// OnLogoutHandler 用户登出一个会话时触发, 用户主动退出
func OnLogoutHandler(c *neffos.NSConn, msg neffos.Message) (err error) {
logger.Debug("Web terminal on logout event trigger: ", msg.Room)
var message LogoutMsg
err = msg.Unmarshal(&message)
var clientID string
err = msg.Unmarshal(&clientID)
if err != nil {
return
}
clientID := message.Room
clients.DeleteClient(clientID)
return
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment