-
Notifications
You must be signed in to change notification settings - Fork 48
Implement lobby leave functionality #241
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
base: main
Are you sure you want to change the base?
Implement lobby leave functionality #241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. I have some thoughts on the new event/packet names (commented inline).
And it could also use a feature tests where a client leaves a lobby and joins a new one (that's the actually functionality we want to support).
a571dd6
to
3df6a8a
Compare
c34ffa0
to
2374d32
Compare
internal/signaling/types.go
Outdated
@@ -94,6 +94,16 @@ type LobbyUpdatedPacket struct { | |||
LobbyInfo stores.Lobby `json:"lobbyInfo"` | |||
} | |||
|
|||
type LeaveLobbyPacket struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: The "Lobby" part could go here
internal/signaling/types.go
Outdated
Type string `json:"type"` | ||
} | ||
|
||
type LeftLobbyPacket struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: the "Lobby" part could go here
Summary
leave()
in Network APIleave
events from signalingleaveLobby
packet on serverTesting
go test ./...
yarn cucumber
(fails: cucumber-js not found)https://chatgpt.com/codex/tasks/task_e_6867d29d6d448320bb7eea6347085ce3