sync icon indicating copy to clipboard operation
sync copied to clipboard

ipc.send from browser-laptop doesn't work with Uint8Arrays

Open diracdeltas opened this issue 9 years ago • 4 comments

if the message contains a Uint8Array, it never gets sent for some reason. sending Uint8Arrays from webview to browser-laptop works fine though.

diracdeltas avatar Dec 22 '16 03:12 diracdeltas

not sure I understand. ipcRenderer.send works, but not webContents.send? That seems very odd because the same converters will apply in both directions. Where are you trying to send from?

bridiver avatar Dec 22 '16 05:12 bridiver

@bridiver no, ipcMain.send (ex: in browser-laptop app/index.js) doesn't work with Uint8Arrays

diracdeltas avatar Dec 22 '16 05:12 diracdeltas

ipcMain.send doesn't go anywhere. What are you trying to send to?

bridiver avatar Dec 22 '16 06:12 bridiver

my bad, i meant evt.sender.send in an ipcMain.on handler. see https://github.com/brave/browser-laptop/blob/feature/syncing/app/sync.js#L38 for instance; if you change any of the sent params to a Uint8Array, the send doesn't seem to happen.

diracdeltas avatar Dec 22 '16 06:12 diracdeltas