Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1400

Add WebSocket error support for errors reported by server

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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@mongodb.com Daniel Tabacaru
            Reporter:
            michael.wilkersonbarker@mongodb.com Michael Wilkerson-Barker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: