Commit 33e8781d by zeven

修复socket掉线无法重连问题

parent 7f74a8d6
{ {
"name": "zm-face-counter", "name": "zm-face-counter",
"version": "1.3.2", "version": "1.3.6",
"private": true, "private": true,
"scripts": { "scripts": {
"android": "react-native run-android", "android": "react-native run-android",
...@@ -8,9 +8,10 @@ ...@@ -8,9 +8,10 @@
"test": "jest", "test": "jest",
"lint": "eslint --ext .js index.js src", "lint": "eslint --ext .js index.js src",
"apk": "cd android && ./gradlew app:assembleRelease && cp ./app/build/outputs/apk/release/app-release.apk ../fcounter.apk", "apk": "cd android && ./gradlew app:assembleRelease && cp ./app/build/outputs/apk/release/app-release.apk ../fcounter.apk",
"android-staging": "code-push release-react ZmFaceCounter-android android -t '1.0.0' --des '1.3.2'", "android-staging": "code-push release-react ZmFaceCounter-android android -t '1.0.0' --des '1.3.6'",
"android-product": "code-push promote ZmFaceCounter-android Staging Production --des '1.3.2'", "android-product": "code-push promote ZmFaceCounter-android Staging Production --des '1.3.6'",
"android-history": "code-push deployment history ZmFaceCounter-android Production" "android-history": "code-push deployment history ZmFaceCounter-android Production",
"android-rollback": "code-push rollback ZmFaceCounter-android Production"
}, },
"pre-commit": [ "pre-commit": [
"lint" "lint"
......
...@@ -115,7 +115,7 @@ class App extends React.Component { ...@@ -115,7 +115,7 @@ class App extends React.Component {
}); });
window.socket.on('disconnect', () => { window.socket.on('disconnect', () => {
window.socket.disconnected = true; window.socket.disconnected = true;
window.socket.connect(); window.socket.reconnect();
}); });
if (!window.socket.hasListeners('restart')) { if (!window.socket.hasListeners('restart')) {
window.socket.on('restart', Restart.restartApp); window.socket.on('restart', Restart.restartApp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment