1
0
forked from circlecloud/tera

refactor: add more type define

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-24 13:03:06 +08:00
parent 38e396feb0
commit c666069889
18 changed files with 896 additions and 682 deletions

View File

@@ -42,11 +42,11 @@ function newcon(address) {
}
socket = io(address, {
path: '/ws',
transports: ['websocket']
transports: ['websocket'],
autoConnect: false,
});
socket.on('connect', function() {
term.writeln('connect')
socket.emit('webclient', {})
});
socket.on('message', function(data) {
if (typeof data === "string") {