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

修正 Socket 失效問題並重構專案架構 #421

Open
4 tasks
JohnsonMao opened this issue Nov 22, 2024 · 0 comments
Open
4 tasks

修正 Socket 失效問題並重構專案架構 #421

JohnsonMao opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
bug Fix something in main refactor refactor the changes already merged.

Comments

@JohnsonMao
Copy link
Contributor

JohnsonMao commented Nov 22, 2024

問題描述

  1. Socket 失效的問題

現況:在特定操作情況下,Socket 連線會不明原因失效。
觸發條件:進入遊戲房間後,離開再進入遊戲房,打開聊天室聊天就會發現 socket 失效了

  1. 專案架構的限制

現況:目前專案的 Socket 管理了所有邏輯房間與聊天室的邏輯,導致維護擴充困難。

  1. call api 的方式

現況:實作 call api 所回傳的函式會導致 React 一直重新渲染

預計如何完成

  • 重構 Auth 層
  • 重構 Socket 管理邏輯
  • Contexts 資料夾結構調整
  • 重構 call api 的方法
@JohnsonMao JohnsonMao added bug Fix something in main refactor refactor the changes already merged. labels Nov 22, 2024
@JohnsonMao JohnsonMao self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix something in main refactor refactor the changes already merged.
Projects
None yet
Development

No branches or pull requests

1 participant