You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sQ is an empty array, while arr is an Uint8Array. Therefore sQ.concat(arr) results into an array with ONE entry which is the complete Uint8Array arr (and not in an array with 4 entries).
I would invest the time to take over the PR - but my experience is too weak. I will try to fix the socket stuff for my use case (quick & half blind & dirty) and will you keep informed what I did.
My code looks like:
This results into sending ONE byte (which is 0x00) instead of the FOUR bytes.
Having a look into websock.js I noticed a problem in the following function:
sQ is an empty array, while arr is an Uint8Array. Therefore sQ.concat(arr) results into an array with ONE entry which is the complete Uint8Array arr (and not in an array with 4 entries).
I changed the send function for my testing:
I think, that doppio should take care, that the parameter "arr" is of type array and not Unint8Array.
The text was updated successfully, but these errors were encountered: