Closed laszbalo closed 8 years ago
Thanks
LGTM for me @maxogden @mafintosh?
why does it have to make a new options map on every call? can it not reuse it?
@mafintosh it seems options gets overwritten internally by ws.
@laszlabo are you sure this does not work by always passing in the same object? I'm wondering what problems can achieve that, the options stays the same. Sorry for being picky here, that bit seems so wrong :/.
I ran into this issue recently as well, has it not yet been resolved?
It has been around for quite a while, I'm merging and releasing as minor.
Hi,
I came across a situation, #https://github.com/mcollina/aedes/issues/61, when it was necessary to force the underlying node websocket to send all the data in binary data frames. With the change I made, someone can pass the following extra arguments to websocket-stream as options: binary, mask, fin, compress. These arguments then will be passed to ws.send() on every invocation.