{"comment":{"url":"https://api.github.com/repos/gopherjs/gopherjs/comments/9453291","html_url":"https://github.com/gopherjs/gopherjs/commit/59323cd88acd2923912b367ed99deddfeeb44f66#commitcomment-9453291","id":9453291,"user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"59323cd88acd2923912b367ed99deddfeeb44f66","created_at":"2015-01-27T05:49:23Z","updated_at":"2015-01-27T05:49:23Z","body":"Oh, I think I understand now, after seeing docs on [`ArrayBufferView`](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView)\r\n\r\n```\r\nArrayBufferView is a helper type representing any of the following JavaScript TypedArray types:\r\n\r\nInt8Array,\r\nUint8Array,\r\nUint8ClampedArray,\r\nInt16Array,\r\nUint16Array,\r\nInt32Array,\r\nUint32Array,\r\nFloat32Array,\r\nFloat64Array or\r\nDataView.\r\n\r\nThis is a helper type to simplify the specification, it isn't an interface and there are no objects implementing it.\r\n```\r\n\r\nSo, send accepts `ArrayBufferView`, aka `Uint8Array`, therefore doing `req.Send([]byte(msg))` ends up making a lot of sense. I see! Thank you!"}}