Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Goffi <goffi@goffi.org>
To: galene@lists.galene.org
Subject: [Galene] Re: Need explanation on protocol
Date: Mon, 22 Jul 2024 20:02:54 +0200	[thread overview]
Message-ID: <3313364.aeNJFYEL58@tazar3> (raw)
In-Reply-To: <871q3le2l3.wl-jch@irif.fr>

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

Hi Juliusz,

thanks for your quick answer.

> [SNIP]
> > But as you can see, the ID is the same, `06cf28c8-95b5-4c22-9444-1f0d4e5a2938`.
> 
> The ID is chosen by the sending client, and should be chosen so as to not
> collide.  The simplest solution is to choose it randomly:
> 
>   https://github.com/jech/galene/blob/master/static/protocol.js#L45
> 
> How are you generating your ids?

I'm choosing it randomly, but the only time I'm sending an ID is when I'm sending my initial offer to Galène, and later on when Louise connects, it re-use the same ID.
My code is available there:
https://repos.goffi.org/libervia-backend/file/tip/libervia/backend/plugins/plugin_comp_conferences/__init__.py#l130
The `session["id"]` used there is generated randomly with `str(uuid.uuid4())`
(https://repos.goffi.org/libervia-backend/file/tip/libervia/backend/plugins/plugin_xep_0166/__init__.py#l572)

How can I specify the ID to use for downstream, i.e. the offers that Galène pushes to me?

Thanks,
Goffi

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2024-07-22 18:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <172167026848.994.7816686770190093792@gauss.local>
2024-07-22 17:52 ` Juliusz Chroboczek
2024-07-22 18:02   ` Goffi [this message]
     [not found]   ` <172167246572.994.11732831478625410475@gauss.local>
2024-07-22 18:26     ` Juliusz Chroboczek
2024-07-22 20:44       ` Goffi
     [not found]       ` <172168132829.994.3096417796511056404@gauss.local>
2024-07-22 20:50         ` Juliusz Chroboczek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3313364.aeNJFYEL58@tazar3 \
    --to=goffi@goffi.org \
    --cc=galene@lists.galene.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox