업데이트 알림(joke-app과 같게): 웹 빌드 id를 index.html meta(mq-build)에 넣고 서버가 /api/version·welcome으로 알려 줌, 다르면 위쪽에 '업데이트 내용이 있습니다 · 지금 새로고침하기 · ✕' 카드(소켓 다시 연결될 때·5분마다·탭으로 돌아올 때 확인)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -141,7 +141,8 @@ export interface GameView {
|
||||
}
|
||||
|
||||
export type ServerMessage =
|
||||
| { t: 'welcome'; protocol: number; userId: string; serverNow: number }
|
||||
/** `build`: the web build the server serves (`<meta name="mq-build">`), null without one — a different build means "새로고침". */
|
||||
| { t: 'welcome'; protocol: number; userId: string; serverNow: number; build: string | null }
|
||||
| { t: 'room'; room: RoomView }
|
||||
| { t: 'left'; code: string; reason: 'leave' | 'kicked' | 'closed' | 'elsewhere' | 'admin' }
|
||||
| { t: 'chat'; code: string; line: ChatLine }
|
||||
|
||||
Reference in New Issue
Block a user