1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-05 01:43:22 +08:00

Add session close button

This commit is contained in:
Jonathan Leibiusky (@xetorthio)
2016-11-12 18:58:30 -03:00
parent 81f02e4a3a
commit e8b38fe717
5 changed files with 31 additions and 18 deletions

View File

@@ -22,6 +22,10 @@ func NewClient(so socketio.Socket, session *Session) *Client {
c := &Client{SO: so}
so.On("session close", func() {
CloseSession(session)
})
so.On("terminal in", func(name, data string) {
// User wrote something on the terminal. Need to write it to the instance terminal
instance := GetInstance(session, name)