mirror of
https://github.com/yudai/gotty.git
synced 2026-01-20 08:16:11 +01:00
Added handling of —permit-arguments option
This commit is contained in:
parent
7715f93517
commit
a4e77b2b76
4 changed files with 42 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
(function() {
|
||||
var httpsEnabled = window.location.protocol == "https:";
|
||||
var args = window.location.search;
|
||||
var url = (httpsEnabled ? 'wss://' : 'ws://') + window.location.host + window.location.pathname + 'ws';
|
||||
var protocols = ["gotty"];
|
||||
var autoReconnect = -1;
|
||||
|
|
@ -12,8 +13,7 @@
|
|||
var pingTimer;
|
||||
|
||||
ws.onopen = function(event) {
|
||||
ws.send(gotty_auth_token);
|
||||
|
||||
ws.send(JSON.stringify({ Arguments: args, AuthToken: gotty_auth_token,}));
|
||||
pingTimer = setInterval(sendPing, 30 * 1000, ws);
|
||||
|
||||
hterm.defaultStorage = new lib.Storage.Local();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue