Skip to content

Add version to hello packet #243

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

erikdubbelboer
Copy link
Member

Summary

  • send library version inside hello packets
  • log the client version when handling hello
  • import version directly from package.json

Testing

  • yarn lint
  • go test ./...

https://chatgpt.com/codex/tasks/task_e_686c892db04c832094fcf51e8b4edc6f

Game string `json:"game"`
ID string `json:"id"`
Secret string `json:"secret"`
Version string `json:"version,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Why omitempty?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ask ChatGPT 🙈

I already fixed some mistakes it made, didn't notice this once. AI is not smart enough yet to understand it's a struct for incoming data only and omitempty doesn't do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants