websocket-spec
  1. websocket-spec
  2. WEBSOCKET_SPEC-49

Consider merging Endpoint with Endpoint configuration

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Suggested by Martin: It seems that a single endpoint implementation can not be used both on the client and the server side (i.e. I can't think of a use-case where the implementation of both would be the same), also it does not make sense to share the same configuration for multiple endpoints (since that would mean they are all published at the same URI). So why not merging Endpoint and EndpointConfiguration? With a client and server API, we could have ServerEndpoint and ClientEndpoint classes (and delete all *EndpointConfiguration classes - move their methods directly to the Endpoint classes). I think it would simplify it for the users.

        Activity

        Hide
        dannycoward added a comment -

        We will not fix this. At one point in the design there was a rational argument for it (simplicity), but now we have one config per logical endpoint and one endpoint instance per connection, it no longer is possible

        Show
        dannycoward added a comment - We will not fix this. At one point in the design there was a rational argument for it (simplicity), but now we have one config per logical endpoint and one endpoint instance per connection, it no longer is possible

          People

          • Assignee:
            dannycoward
            Reporter:
            dannycoward
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved: