Skip to content

Commit

Permalink
disconnect socket
Browse files Browse the repository at this point in the history
  • Loading branch information
chxj1992 committed Oct 17, 2017
1 parent 18a30c8 commit 1105885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/kline.js
Original file line number Diff line number Diff line change
Expand Up @@ -9576,6 +9576,7 @@ function socketConnect() {
requestSuccessHandler(JSON.parse(res.body));
});
}, function () {
socket.disconnect();
console.log("reconnect in 5 seconds ...");
setTimeout(function () {
socketConnect();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kline",
"version": "1.0.3",
"version": "1.0.4",
"description": "本项目基于某网站的K线插件做了一些封装和二次开发,使插件更加易用,方便后来的开发者.",
"main": "js/kline.js",
"directories": {
Expand Down

0 comments on commit 1105885

Please sign in to comment.