Skip to content

Commit

Permalink
private reconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Jul 27, 2021
1 parent e4e6db5 commit ca27ed8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Api/WebSocketV3/SocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ private function debug($con,$global){
$debug['private'][$con->tag_keysecret['key']]='recon';
$global->save('debug',$debug);

//更改登录状态
$global->keysecretUpdate($con->tag_keysecret['key'],2);

$con->close();
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/Api/WebSocketV5/SocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private function onClose($global){
//Timer::del($con->timer_other);
}

//$con->reConnect(10);
$con->reConnect(10);
};
}

Expand Down Expand Up @@ -278,6 +278,9 @@ private function debug($con,$global){
$debug['private'][$con->tag_keysecret['key']]='recon';
$global->save('debug',$debug);

//更改登录状态
$global->keysecretUpdate($con->tag_keysecret['key'],2);

$con->close();
}
}
Expand Down

0 comments on commit ca27ed8

Please sign in to comment.