{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/2936","labels_url":"https://api.github.com/repos/atom/electron/issues/2936/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/2936/comments","events_url":"https://api.github.com/repos/atom/electron/issues/2936/events","html_url":"https://github.com/atom/electron/issues/2936","id":108966629,"number":2936,"title":"What would be an efficient way to send buffer data from main to renderer?","user":{"login":"0x80","id":1193520,"avatar_url":"https://avatars.githubusercontent.com/u/1193520?v=3","gravatar_id":"","url":"https://api.github.com/users/0x80","html_url":"https://github.com/0x80","followers_url":"https://api.github.com/users/0x80/followers","following_url":"https://api.github.com/users/0x80/following{/other_user}","gists_url":"https://api.github.com/users/0x80/gists{/gist_id}","starred_url":"https://api.github.com/users/0x80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x80/subscriptions","organizations_url":"https://api.github.com/users/0x80/orgs","repos_url":"https://api.github.com/users/0x80/repos","events_url":"https://api.github.com/users/0x80/events{/privacy}","received_events_url":"https://api.github.com/users/0x80/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T21:46:06Z","updated_at":"2015-09-30T03:30:15Z","closed_at":"2015-09-30T03:30:15Z","body":"webContents.send() uses strings. In my application I want to send about 512 bytes of data (arriving in Buffer) at about 60fps from the main process to a renderer process. What would be an efficient way without converting it to and from strings?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/144272666","html_url":"https://github.com/atom/electron/issues/2936#issuecomment-144272666","issue_url":"https://api.github.com/repos/atom/electron/issues/2936","id":144272666,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2015-09-30T03:30:15Z","updated_at":"2015-09-30T03:30:15Z","body":"The most reliable way for this is to use [shared memory](http://blog.varunajayasiri.com/shared-memory-with-nodejs), though it is not easy to find a solid implementation for Node.js."}}