websocket-spec
  1. websocket-spec
  2. WEBSOCKET_SPEC-13

Provide ability to attach arbitrary objects to a Session

    Details

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

      Description

      An application might need to maintain context across multiple messages from an endpoint. The Session interface should allow attaching arbitrary objects.
      This is similar to HttpSession setAttribute(), getAttribute() etc. methods, but isolated from HttpSession.

      The Session interface can just provide access to a Map object :
      Map<String, Object> getAttributes()

        Activity

        Hide
        dannycoward added a comment -

        We are adding this for v009 of the spec, look out for it soon !

        Show
        dannycoward added a comment - We are adding this for v009 of the spec, look out for it soon !
        Hide
        dannycoward added a comment -

        adding this ability for v009 draft

        Show
        dannycoward added a comment - adding this ability for v009 draft

          People

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

            Dates

            • Due:
              Created:
              Updated:
              Resolved: