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

Client-Server time sync #223

Open
JaeYeopHan opened this issue Jun 6, 2017 · 0 comments
Open

Client-Server time sync #223

JaeYeopHan opened this issue Jun 6, 2017 · 0 comments

Comments

@JaeYeopHan
Copy link
Contributor

Problem

시간이 길어질수록 어떠한 이유로 클라이언트 간의 time sync가 맞지 않는다.

Solve

낮과 밤으로 넘어가는 로직에서 서버와의 통신을 한 번 더 수행한다.

  • 낮 -> 밤 or 밤 -> 낮 부분에서 client가 server로 다음 로직을 수행할 준비가 되었다는 신호를 한 번 더 보낸다.
  • 서버에서는 투표 결과가 모두 입력되면 투표 결과를 알려주듯이, 모든 클라이언트가 다음 로직을 수행할 준비가 되었으면 그 때 다음 로직 시작 신호를 준다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant