update Antunnel + vTerm

This commit is contained in:
lxsang
2020-12-22 15:14:46 +00:00
parent f9ebdd95ed
commit 2f7a677463
13 changed files with 15 additions and 48 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@lxsang.me"
},
"version":"0.1.5-a",
"version":"0.1.6-a",
"category":"Library",
"iconclass":"fa fa-adn",
"mimes":["none"],

Binary file not shown.

View File

@ -59,6 +59,7 @@ Msg.CLOSE = 5
Msg.SUBSCRIBE = 2
Msg.UNSUBSCRIBE = 3
Msg.CTRL = 7
Msg.PING = 8
Msg.MAGIC_END = [0x44, 0x54]
Msg.MAGIC_START = [0x4e, 0x41 ]
@ -168,6 +169,8 @@ class AntunnelApi
sub = @subscribers[msg.header.sid]
return unless sub
sub.close(true)
when Msg.PING
# do nothing
else
console.error "Message of type #{msg.header.type} is unsupported", msg

View File

@ -9,7 +9,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@lxsang.me"
},
"version":"0.1.5-a",
"version":"0.1.6-a",
"category":"Library",
"iconclass":"fa fa-adn",
"mimes":["none"],