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

encode/decode for Java Long type #66

Closed
twister55 opened this issue Mar 10, 2017 · 1 comment
Closed

encode/decode for Java Long type #66

twister55 opened this issue Mar 10, 2017 · 1 comment

Comments

@twister55
Copy link

twister55 commented Mar 10, 2017

I'm sorry if it's silly question, but I have problem while communicating with java server. Server expects Long, but as I know JS doesn't have Longs. Can you explain me how to fix this?

var payload = {
     time: Date.now(),
    ....
}
var encoded = msgpack.encode(payload)
// do send

logs on server

{time=1.488983919882E12}
@twister55
Copy link
Author

sorry, just found out that this is duplicate of #1

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