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

fix: SocketIO JSON dumps with sane defaults #1474

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

adamantike
Copy link
Collaborator

Similar to how engineio provides a JSON-compatible module, this change adds a custom JSON encoder with support for additional types.

Changing SocketIO's JSON module fixes the encoding issue when the scanning process tried to send a datetime, failing and the frontend not displaying the scanned game (commonly, when it had sibling games)

Copy link

github-actions bot commented Jan 12, 2025

Test Results

93 tests  ±0   93 ✅ ±0   26s ⏱️ -4s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit d837070. ± Comparison against base commit 8872161.

♻️ This comment has been updated with latest results.

Similar to how `engineio` provides a JSON-compatible module, this change
adds a custom JSON encoder with support for additional types.

Changing SocketIO's JSON module fixes the encoding issue when the
scanning process tried to send a datetime, failing and the frontend not
displaying the scanned game (commonly, when it had sibling games)
@adamantike adamantike force-pushed the fix/socketio-json-dumps branch from 508012d to d837070 Compare January 12, 2025 03:41
Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

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

ayo nice find!

@adamantike adamantike merged commit b298da8 into master Jan 12, 2025
8 checks passed
@adamantike adamantike deleted the fix/socketio-json-dumps branch January 12, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants