Skip to content

Add sub-protocol support #130

Closed
Closed

Description

@rstoyanchev

As a WebSocket emulation layer, it makes sense to support sub-protocols in SockJS. The sockjs-client could have a "protocols" option added with the value passed to the server either through the W3C WebSocket constructor or by setting the Sec-WebSocket-Protocol header.

Servers can then choose to add support by checking the Sec-WebSocket-Protocol header.

Activity

  1. matzew commented on Aug 5, 2013

    @matzew

    👍 yes, that would be a nice addition

  2. sshcherbakov commented on Aug 19, 2013

    @sshcherbakov

    +1!

  3. radicans commented on Aug 27, 2014

    @radicans

    Once people stop commenting and start contributing.

  4. sshcherbakov commented on Aug 27, 2014

    @sshcherbakov

    There are 7 open PRs, some of them hanging since 2013.
    Seeing this picture one might ask whether the project is dead.

  5. radicans commented on Aug 27, 2014

    @radicans

    @sshcherbakov Yes, lets completely ignore the fact that @brycekahle has been had at work rewriting the client since he took over the project and posted various of updates on issues stating that a new release will come once the refactor is done.

    The health of a project cannot be determined by the amount of open pull requests and issues. With that same mindset you would also consider joyent/node to be dead as it has 216 open pull requests and 710 issues. Where the oldest pull request is from Mar 10, 2012.

  6. sshcherbakov commented on Aug 27, 2014

    @sshcherbakov

    Sorry, didn't check the recent closed PR activity.
    It looks definitely better than half a year ago.

  7. brycekahle commented on Oct 20, 2014

    @brycekahle
    Contributor

    Since this needs to support more transports than just Websockets, we can't use the WS specific headers. I think the approach taken in #139 is better, by adding it to the info response.

    I'm going to schedule this for 1.1 given how much work it will probably be.

  8. added this to the 1.1 milestone on Oct 20, 2014
  9. rstoyanchev commented on Oct 21, 2014

    @rstoyanchev
    ContributorAuthor

    This would be a good fit for 1.0 IMO especially now that #65 is addressed. SockJS is very much focused on being a transport so it makes sense to have some sub-protocol negotiation support.

  10. danbev commented on Oct 21, 2014

    @danbev

    @brycekahle Let me know if there is anything I can help out with on this issue.

  11. brycekahle commented on Oct 21, 2014

    @brycekahle
    Contributor

    This would require server work and changes to the protocol. Right now 1.0 is compatible with the existing protocol, so I don't want to delay 1.0 even further with this work.

  12. danbev commented on Oct 23, 2014

    @danbev

    @brycekahle Sounds good and I'd be happy to take a stab at adding this for 1.x.

  13. allbutone commented on Apr 3, 2018

    @allbutone

    does sockjs support sub-protocols now ?

  14. brycekahle commented on Apr 6, 2018

    @brycekahle
    Contributor

    @allbutone This issue is still open, so no.

  15. locked and limited conversation to collaborators on Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions