Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
8 years ago
Commit
068e3e650c2020faf284f070c9b99ab927d6efe7
1 parent
73e64c6a
socket修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
public/js/service/socket/chat.js
public/js/service/socket/chat.js
View file @
068e3e6
...
...
@@ -43,7 +43,7 @@ function socketInit(opts) {
socketIns
.
onerror
=
options
.
onError
||
function
()
{};
return
socketIns
;
return
socketIns
||
{}
;
}
if
(
window
.
WebSocket
)
{
...
...
@@ -59,7 +59,7 @@ function socketInit(opts) {
connectId
=
setInterval
(
function
()
{
if
(
socket
.
readyState
!==
WebSocket
.
OPEN
)
{
if
(
times
<
3
)
{
socket
.
close
();
socket
.
close
&&
socket
.
close
();
socket
=
socketConnect
();
times
++
;
}
else
{
...
...
Please
register
or
login
to post a comment