• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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 7 May 2022, 23:02

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

    D 1 Reply Last reply 9 May 2022, 03:08 Reply Quote 1
    • D
      dan @audrew31
      last edited by 9 May 2022, 03:08

      @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 5 Sept 2022, 13:23 9 May 2022, 13:21

        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

        D A 2 Replies Last reply 10 May 2022, 12:40 Reply Quote 0
        • D
          dan @audrew31
          last edited by 10 May 2022, 12:40

          @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 5 Oct 2022, 17:13 10 May 2022, 17:00

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

            D 1 Reply Last reply 26 May 2022, 14:41 Reply Quote 0
            • D
              dan @audrew31
              last edited by 26 May 2022, 14:41

              @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
              • D dan referenced this topic on 16 Jun 2022, 16:03
              • First post
                Last post