Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重构上线逻辑 #46

Open
JiYouMCC opened this issue Jan 9, 2017 · 1 comment
Open

重构上线逻辑 #46

JiYouMCC opened this issue Jan 9, 2017 · 1 comment
Labels
Projects
Milestone

Comments

@JiYouMCC
Copy link
Owner

JiYouMCC commented Jan 9, 2017

上线提醒要正常一些,浏览器记忆的在线不算数

@JiYouMCC JiYouMCC added the bug label Jan 9, 2017
@JiYouMCC JiYouMCC modified the milestone: 重构 Jan 9, 2017
@JiYouMCC
Copy link
Owner Author

JiYouMCC commented Feb 8, 2017

var config = {
  authDomain: "<appId>.wilddog.com",
  syncURL: "https://<appId>.wilddogio.com"
};
wilddog.initializeApp(config);
var connectedRef = wilddog.sync().ref("/.info/connected");
connectedRef.on("value", function(snap) {
  if (snap.val() === true) {
    alert("connected");
  } else {
    alert("not connected");
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Find Ghost
NOT START
Development

No branches or pull requests

1 participant