paste-as-keys

This commit is contained in:
Devaev Maxim
2018-08-08 08:38:47 +03:00
parent d9d433025c
commit 3551ebd9a1
6 changed files with 276 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ var session = new function() {
tools.debug("WebSocket opened:", event);
atx.loadInitialState();
msd.loadInitialState();
hid.installCapture(__ws);
hid.setSocket(__ws);
__missed_heartbeats = 0;
__ping_timer = setInterval(__pingServer, 1000);
};
@@ -69,7 +69,7 @@ var session = new function() {
clearInterval(__ping_timer);
__ping_timer = null;
}
hid.clearCapture();
hid.setSocket(null);
atx.clearState();
__ws = null;
setTimeout(session.startPoller, 1000);