Add WebSocket error support for errors reported by server

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • None

      The second step in migrating the WebSocket observer handling to match the spec is to migrate the code for ClientImpl::Connection::websocket_handshake_error_handler() into the DefaultSocketProvider so it looks at the handshake response, converts the code to an appropriate "simulated" server error code and reports this error to the WebSocket observer using the websocket_closed_handler() function. Since these errors will be eventually reported as errors by the server, the was_clean value should be true.

      Refer to the WebSocket Updates section in the technical design for details regarding these updates.

      Note: websocket_error_handler() does not need to be called for these errors

            Assignee:
            Daniel Tabacaru
            Reporter:
            Michael Wilkerson-Barker (Inactive)
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Archived: