Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
af656442
Commit
af656442
authored
May 23, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 增加重连截止
parent
30258675
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
globals.ts
src/app/globals.ts
+1
-2
No files found.
src/app/globals.ts
View file @
af656442
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
import
*
as
io
from
'socket.io-client'
;
import
*
as
io
from
'socket.io-client'
;
import
{
Terminal
}
from
'xterm'
;
import
{
Terminal
}
from
'xterm'
;
// 由于没有真正Upgrade到websocket协议,所以禁用重连截止,否则会用户闪断
export
const
TermWS
=
io
.
connect
(
'/ssh'
);
export
const
TermWS
=
io
.
connect
(
'/ssh'
,
{
'reconnection'
:
false
});
export
const
sep
=
'/'
;
export
const
sep
=
'/'
;
export
let
Video
:
{
export
let
Video
:
{
id
:
string
,
id
:
string
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment