ws icon indicating copy to clipboard operation
ws copied to clipboard

What do we need in the next major version release?

Open JoshuaWise opened this issue 10 years ago • 13 comments

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:

  • Set instead of Array for client tracking
  • Rewrite everything as ES6

What else?

@3rd-Eden @JacksonTian @einaros

JoshuaWise avatar Sep 21 '16 20:09 JoshuaWise

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~~.

lpinca avatar Sep 22 '16 06:09 lpinca

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.

JoshuaWise avatar Sep 26 '16 01:09 JoshuaWise

I am OK.

JacksonTian avatar Sep 26 '16 05:09 JacksonTian

Add reconnection event for sockets.

Aleksey-Danchin avatar Sep 28 '16 08:09 Aleksey-Danchin

proxy support

aryeharmon avatar Sep 29 '16 11:09 aryeharmon

i second proxy support

LightningShock avatar Dec 16 '16 06:12 LightningShock

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

lpinca avatar Dec 16 '16 06:12 lpinca

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?

lpinca avatar Jan 02 '17 16:01 lpinca

Support for node cluster?

ghost avatar Jan 03 '17 17:01 ghost

@kmansoor cluster already works out of the box.

lpinca avatar Jan 03 '17 17:01 lpinca

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?

ghost avatar Jan 03 '17 17:01 ghost

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

lpinca avatar Jan 03 '17 17:01 lpinca

Great, thank you so much.

ghost avatar Jan 03 '17 18:01 ghost