Add ability to use ws options
lpinca opened this issue · 4 comments
lpinca commented
The exposed interface does not allow to use ws options so it is not possible, for example, to disable CPU intensive extensions like permessage-deflate.
porsager commented
Ah, thanks a lot. I'll add that right away. Would also be nice to be able to set other things like ping, maxTimeout, maxRetries etc that way.
porsager commented
I went ahead and allowed an options object that contained pws specific options as well which is passed to the websocket constructer. It might be cleaner to have a specific property for ws
options, but I think that it's fine not having to check the docs to figure that out - what do you think?
lpinca commented
It should be ok if there are no conflicts with property names.