https://livekit.io logo
Join Slack
Powered by
# helpdesk
  • d

    dry-elephant-14928

    01/28/2021, 1:32 AM
    yes
  • w

    wonderful-manchester-12533

    01/28/2021, 1:32 AM
    interesting, and is that used to store things like a users track?
  • w

    wonderful-manchester-12533

    01/28/2021, 1:32 AM
    track(s)?
  • d

    dry-elephant-14928

    01/28/2021, 1:32 AM
    it's the primary mapping we use on the server side
  • d

    dry-elephant-14928

    01/28/2021, 1:32 AM
    it's an UUID
  • d

    dry-elephant-14928

    01/28/2021, 1:33 AM
    when you refresh, it's likely that the websocket is now landing on a different node
  • d

    dry-elephant-14928

    01/28/2021, 1:33 AM
    so something we have to figure out with this particular use case
  • w

    wonderful-manchester-12533

    01/28/2021, 1:34 AM
    even though I'm only running one node?
  • s

    steep-balloon-41261

    01/28/2021, 1:34 AM
    This message was deleted.
    m
    • 2
    • 1
  • w

    wonderful-manchester-12533

    01/28/2021, 1:34 AM
    is there a reason livekit generates a UUID on the fly for each socket connection?
  • d

    dry-elephant-14928

    01/28/2021, 1:37 AM
    that's what participant identity is for
  • d

    dry-elephant-14928

    01/28/2021, 1:37 AM
    user provided unique id
  • d

    dry-elephant-14928

    01/28/2021, 1:38 AM
    the server-assigned ID doesn't really need to change, so that's a good point
  • d

    dry-elephant-14928

    01/28/2021, 1:39 AM
    it currently does because we use that id to coordinate signal connection as well, which could be on a different node as the RTC room
  • d

    dry-elephant-14928

    01/28/2021, 1:41 AM
    I think I see the issue you are saying though.. is that if it changes in the same session, it could mess things up. I think there are def ways we could do to make that stable per room. the other related thing to improve is reconnection behavior.
  • w

    wonderful-manchester-12533

    01/28/2021, 1:47 AM
    ya its also interesting to think about the socket closing but perhaps due to an error and if it reconnects
  • w

    wonderful-manchester-12533

    01/28/2021, 1:48 AM
    does it make sense to draw a line and say: "if the socket closes, assume you must rejoin and republish" ?
  • w

    wonderful-manchester-12533

    01/28/2021, 1:49 AM
    if so, I'd say purge everything related to that user + room and then its very straightforward to reconnect without any old data lingering on the server side (like zombie tracks)
  • w

    wonderful-manchester-12533

    01/28/2021, 1:57 AM
    I'm going to spend more time on the server side to see if I can propose helpful additions to the disconnect flow
  • d

    dry-elephant-14928

    01/28/2021, 1:58 AM
    that's be great! would appreciate your contributions there
  • s

    steep-balloon-41261

    01/28/2021, 1:59 AM
    This message was deleted.
    w
    • 2
    • 1
  • d

    dry-elephant-14928

    01/28/2021, 2:00 AM
    there could be cases where TCP connection is wonkey, but the underlying peerconnection stays connected
  • w

    wonderful-manchester-12533

    01/28/2021, 2:00 AM
    I have noticed that the streams always stay on even after socket disconnects
  • s

    steep-balloon-41261

    01/28/2021, 2:48 AM
    This message was deleted.
    d
    c
    • 3
    • 3
  • c

    clever-kite-90169

    01/28/2021, 2:49 AM
    At some point you might need to cut them off or switch to data channels for room communication instead of ws
  • s

    steep-balloon-41261

    01/28/2021, 8:12 AM
    This message was deleted.
    👀 1
    ✅ 1
    d
    w
    • 3
    • 4
  • c

    clever-kite-90169

    01/28/2021, 8:12 AM
    Another panic
  • d

    dry-elephant-14928

    01/28/2021, 8:25 AM
    this is single-node right? on 0.2.3?
  • d

    dry-elephant-14928

    01/28/2021, 9:21 AM
    ok, pushed an update that re-uses participant id upon reconnect.. still a bunch of work to to ensure a smooth reconnect.
  • c

    clever-kite-90169

    01/28/2021, 5:50 PM
    sweet thanks
1...8910...91Latest