Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1658

Add fallback for web-sockets based connectivity

      Problem

      We need to run our application behind proxies. Proxies can have web-sockets disabled
      Which leads to issues like below. The realmjs sdk should fallback to long polling or similar

      Connection[1]: Connection closed due to error
      Connected to endpoint '65.0.217.240:443' (from '172.28.1.146:63305')
      ERROR: Websocket: Expected HTTP response 101 Switching Protocols, but received:
      HTTP/1.1 401 Unauthorized
      cache-control: no-cache, no-store, must-revalidate
      connection: close
      content-length: 212
      content-type: application/json
      date: Wed, 13 Apr 2022 11:43:32 GMT
      server: envoy
      vary: Origin
      x-envoy-max-retries: 0
      x-frame-options: DENY

      Solution

      The realmjs sdk should fallback to long polling or similar

      How important is this improvement for you?

      Dealbreaker

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: