What do we need in the next major version release?
It's been a while since we've published a ws release, but I know we've made a lot of breaking changes in master, so our next release will have to be a major version. To get the ball rolling, I'm creating a list of everything that should be included in the next major version release.
Here's what I'm currently aware of:
Setinstead ofArrayfor client tracking- Rewrite everything as ES6
What else?
@3rd-Eden @JacksonTian @einaros
Few ideas:
- [x] Remove support for older versions of the protocol (Hixie ~~and HyBi drafts 07-12~~)
- [x] Ignore data that is sent along with the upgrade request. If I'm reading https://tools.ietf.org/html/rfc6455#section-1.2 correctly, data transfer should start only when the handshake is completed.
- [x] Check if the closing handshake (https://tools.ietf.org/html/rfc6455#section-7.1.1) is working as intended (#784).
- [x] Fix permessage deflate issues (#799).
- [x] ~~Add proper stream support~~.
Those are all good. I'm especially interested in removing support for old protocols (due to security and many other issues). Hopefully the other maintainers agree with me on that.
I am OK.
Add reconnection event for sockets.
proxy support
i second proxy support
I don't think we will add proxy support in next release unless someone from the community steps up and makes an awesome PR.
For the moment proxy support can be added with a custom agent. Take a look a these modules:
- https://github.com/TooTallNate/node-socks-proxy-agent
- https://github.com/TooTallNate/node-https-proxy-agent
ws is quite popular and I wonder if we should go through a beta phase before cutting version 2.0.0. If so I would do it soon so people can start using it and report issues, if any.
Thoughts?
Support for node cluster?
@kmansoor cluster already works out of the box.
Fully aware that this is not the right place to ask this, but I'm in the middle of rewriting a production app (Express 4.x) to use Ajax instead of 'ws' because it started to fail in a node cluster'ed env. Is it possible for you to point me to any docs or example?
This is a very simple implementation, but that a look at this example: https://github.com/hashrocket/websocket-shootout/blob/master/js/run-cluster.js
Great, thank you so much.