Lib-jitsi-meet JWT support with websockets

Hey there!

In lib-jitsi-meet documentation on authentication with JWT (https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md) it’s currently been said that JWT authentication is supported only with BOSH:

JWT token authentication currently works only with BOSH connections.

We are wondering if this is currently still the case and if it is are there any plans to add Websocket support in a more recent future.

Thanks for the awesome product you’re all building!

It is just that document needs an update. JWT is supported with websockets and we use that already in production.

@damencho That’s really awesome! In order to pass in the token, can we continue using JitsiMeetJS.JitsiConnection for ws too just like with BOSH?

Yes.

1 Like

Awesome! Thanks so much!

This is very good news!!!

@damencho Right now when somebody’s connection drops, we’re relying on BOSH to timeout his connection and such users will get kicked out of the conference after the timeout expires. How do you handle this kind of situation with Websockets?

mod_smacks.lua hibernates the session and waits for 60 seconds for the reconnection if that does not happen the session is closed. The result is the same behavior in the UI as with bosh.

Cool! Thanks so much!