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

Encoding all Javascripts numbers as float64 ? #154

Open
leonsal opened this issue Jan 24, 2025 · 0 comments
Open

Encoding all Javascripts numbers as float64 ? #154

leonsal opened this issue Jan 24, 2025 · 0 comments

Comments

@leonsal
Copy link

leonsal commented Jan 24, 2025

Hi,

My application should work using JSON or MessagePack as the message encoder/decoder.
So my server (in Go) is expecting that all numeric values sent by the browser are decoded to 'float64',
but I received small numeric values as 'int8'.

Is there an option to force the encoding in the browser of all numbers
to MessagePack 'float64' type ?

Thanks.

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

No branches or pull requests

1 participant