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

[기술적 챌린지] 지연시간 기반 무궁화게임 공정성 확보 #87

Closed
ChoiWheatley opened this issue Dec 1, 2023 · 1 comment · Fixed by #104
Closed
Assignees
Labels
enhancement New feature or request

Comments

@ChoiWheatley
Copy link
Contributor

Socket#handshake 안에는 다음과 같은 속성들이 들어있다. socket.io 문서

{
  headers: /* the headers of the initial request */
  query: /* the query params of the initial request */
  auth: /* the authentication payload */
  time: /* the date of creation (as string) */
  issued: /* the date of creation (unix timestamp) */
  url: /* the request URL string */
  address: /* the ip of the client */
  xdomain: /* whether the connection is cross-domain */
  secure: /* whether the connection is secure */
}

이때 issued 속성을 사용하면 milliseconds 단위의 시간을 알아낼 수 있다. 이 점을 착안하여 클라이언트들의 이벤트 이슈 발행시간과 도착시간을 비교하면 지연시간을 계산할 수 있지 않을까?

@ChoiWheatley ChoiWheatley converted this from a draft issue Dec 1, 2023
@ChoiWheatley ChoiWheatley self-assigned this Dec 1, 2023
@ChoiWheatley ChoiWheatley added the enhancement New feature or request label Dec 1, 2023
@ChoiWheatley
Copy link
Contributor Author

ChoiWheatley commented Dec 1, 2023

@ChoiWheatley ChoiWheatley moved this to Todo in RecRe Dec 3, 2023
@ChoiWheatley ChoiWheatley removed the status in RecRe Dec 3, 2023
@ChoiWheatley ChoiWheatley moved this to Todo in RecRe Dec 4, 2023
@ChoiWheatley ChoiWheatley linked a pull request Dec 4, 2023 that will close this issue
@ChoiWheatley ChoiWheatley moved this from Todo to In Progress in RecRe Dec 4, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in RecRe Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant