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
Support async operations in unpackMessage() #34
Comments
Could you demonstrate this? |
@vitalets Vitaly, I really love this library, and your work in general, but I am working on a different project right now, so I think it might be a long time before I could get to this. I think you can read the contents of the Blob inside the function when using Node.js (not sure, I am browser focused) So, my understanding, as I mid-level JS developer, is that I need to await a promise to get the data from the Blob, in order to process/unpack it, and return it from I hope that helps. |
@cameronelliott I've got the point. Thanks for your explanation anyway! |
Released as v2.0.1. |
I've been experimenting with this library in the browser,
but run into one issue I am not sure how to resolve.
For the unpackMessage function, in the browser, I receive a Blob, but I don't think I can get the Blob data before returning from the function. When I tried JSON.parse it just returned undefined.
Maybe data is not a blob in Node, but it seems to be in Chrome.
Let me know if an example would help.
The text was updated successfully, but these errors were encountered: