Skip to content
Discussion options

You must be logged in to vote

I would need to see the code. From your description, it appears your implementation is correct (there is no additional encoding required), the error message however indicates a malformed request. I think this byte sequence is not correct as well.

Documentation for this feature (custom transport) is still a WIP, and there are a few sharp edges it is easy to get cut on. Most importantly, the Uint8Array which backs the message injected to send_message is actually a direct view onto the WASM heap, which helps us avoid an otherwise needless copy in most cases - ergo if you do not read this message immediately within the scope of the send_message callback, you may read wrong data or even an alr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akshaykmr
Comment options

Answer selected by akshaykmr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants