FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    fusionauth websockets?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    6
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      audrew31
      last edited by

      Is it possible to use websocket connection to receive data from fusionauth?

      danD 1 Reply Last reply Reply Quote 1
      • danD
        dan @audrew31
        last edited by

        @audrew31

        Can you tell us a bit more about what you are trying to do?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • A
          audrew31
          last edited by audrew31

          let's say I would like to retrieve all users list in WebSocket connection. Is that possible? Also, this is off topic, but I would like to know couple more things. Is it possible to track online users? Because for some reason usernameStatus and active properties always stays true even if user is not logged in

          danD A 2 Replies Last reply Reply Quote 0
          • danD
            dan @audrew31
            last edited by

            @audrew31 I have never built in websockets so I'm not sure. The current version of FusionAuth is built on tomcat, so if tomcat supports websockets, FusionAuth should as well.

            If you are looking for whether a user is logged in or not, you want to pull their refresh tokens. More details here: https://fusionauth.io/docs/v1/tech/apis/jwt

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            1 Reply Last reply Reply Quote 0
            • A
              audrew31 @audrew31
              last edited by audrew31

              @dan Sorry, so fusionauth interface doesn't provide the user's online status info when jwt provided?

              danD 1 Reply Last reply Reply Quote 0
              • danD
                dan @audrew31
                last edited by

                @audrew31

                A JWT is stateless, so there's no 'online status'.

                FusionAuth does tell you if a user has a valid refresh token, and that's the closest thing it offers.

                Here's some more information about tokens that might be helpful to you: https://fusionauth.io/learn/expert-advice/tokens/

                --
                FusionAuth - Auth for devs, built by devs.
                https://fusionauth.io

                1 Reply Last reply Reply Quote 0
                • danD dan referenced this topic on
                • First post
                  Last post