Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

accept array as payload, closes #12 #17

Merged
merged 2 commits into from
Sep 20, 2016
Merged

accept array as payload, closes #12 #17

merged 2 commits into from
Sep 20, 2016

Conversation

FokkeZB
Copy link
Contributor

@FokkeZB FokkeZB commented Sep 20, 2016

I've chosen to only add support for array to buffer so that people with little familiarity with buffers, can simply think about what bytes to send.

We don't want to encourage new Buffer(string), we don't need new Buffer(buffer) because we don't modify it anyway and I don't expect much use of new Buffer(ArrayBuffer|TypedArray.buffer).

And of course anything is still possible, but then just do it before you call send().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants