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

Question regarding sending a Uint8Array #219

Closed
xgdgsc opened this issue Jan 1, 2018 · 1 comment
Closed

Question regarding sending a Uint8Array #219

xgdgsc opened this issue Jan 1, 2018 · 1 comment

Comments

@xgdgsc
Copy link

xgdgsc commented Jan 1, 2018

I' m trying to use zeromq.js to send a flatbuffers buffer to a python process, like the tutorial

......
var buf = builder.asUint8Array()
this.pubSock.send(['ChannelName', buf])

I get error like:

struct.error: unpack_from requires a buffer of at least 4 bytes

when unpacking in Python. I' m not sure if it is the problem of the js side or python side. I want to ask would sending a Uint8Array like this work?

@rolftimmermans
Copy link
Member

The latest 6.0 beta release supports Uint8Array messages. It would be great if you could try it out! The new version has a new API that addresses some fundamental issues with the previous API, but it does include a compatibility layer that should make upgrading easier. See #189 for the reasoning behind the new API. If you run into any problems feel free to report it here or in a new issue.

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

2 participants