Send typed Arrays
Opened this issue · 3 comments
unic8s commented
Line 50 in 87c412e
Change concat call to....
].concat( ...this.data );
... will fix the issue.
Thanks for your work - works great for me.
Granjow commented
Thanks @unic8s ! Can you explain a bit more in detail what issue this fixes? Both statements produce the same result for me.
unic8s commented
Sorry for delay @Granjow . I prepared a demo https://codepen.io/unic8/pen/RwgWaxG
Your library currently attaches the array in a nested way. The proposed solution attaches it flat.
It's only about arrays. I send ArtNet data arrays with about 1.000.000 values per second I cannot execute this to often and I attach flat arrays to the body of an ArtNet package.
Granjow commented