Update event names

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-07-24 14:55:17 -03:00
parent fd7441943d
commit 8424479e76
6 changed files with 32 additions and 19 deletions

View File

@@ -32,12 +32,12 @@ func WS(so socketio.Socket) {
core.SessionClose(session)
})
so.On("terminal in", func(name, data string) {
so.On("instance terminal in", func(name, data string) {
// User wrote something on the terminal. Need to write it to the instance terminal
core.InstanceWriteToTerminal(session.Id, name, data)
})
so.On("viewport resize", func(cols, rows uint) {
so.On("instance viewport resize", func(cols, rows uint) {
// User resized his viewport
core.ClientResizeViewPort(client, cols, rows)
})