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
Hey,
I'm trying to send and receive blobs from nodejs with osc.js, through websockets, testing on a single computer. The issue: the UInt8Array I'm getting from the received blob is of the right size, but all values are zeros. Weirdly, if I send a float in the same message, that affect the value of the UInt8Array... Maybe I'm reading the array in a wrong way.
and tried with value: Uint8Array([0x63, 0x61, 0x74, 0x21]) too, which triggered an error for a missing "new", which I add, and same zero array at reception.
I receive with
socketPort.on("message",function(oscMsg){console.log("An OSC Message was received!",oscMsg);console.log(oscMsg.args[0].value);});
Hi @Zharkov, sorry to hear you're having trouble with sending blobs. You're right that the example code in osc.js' README wasn't quite right. I've filed an issue and fixed this.
As for the problem with your empty blobs, can you put together a simplified test case or example of some kind that I can run and try out myself?
Hey,
I'm trying to send and receive blobs from nodejs with osc.js, through websockets, testing on a single computer. The issue: the UInt8Array I'm getting from the received blob is of the right size, but all values are zeros. Weirdly, if I send a float in the same message, that affect the value of the UInt8Array... Maybe I'm reading the array in a wrong way.
I'm sending with
and tried with
value: Uint8Array([0x63, 0x61, 0x74, 0x21])
too, which triggered an error for a missing "new", which I add, and same zero array at reception.I receive with
which output
I seem to have that issue only with blobs, as other type are sent/received well.
I'm running on Ubuntu 16.04LTS, node v10.16.3, osc 2.3.1
Thanks for your help!
The text was updated successfully, but these errors were encountered: