Commit Graph
20 Commits
Author SHA1 Message Date
Joachim Bauch 706a876fc3 Send initial user flags to internal sessions asynchronously. 2022-07-12 14:16:33 +02:00
Joachim Bauch d1c5d785c8 Fix deadlock if virtual session leaves room. 2022-07-12 10:09:22 +02:00
Joachim Bauch 545bce0082 Fix and add test for clustered disconnect of duplicate room ids. 2022-07-08 14:57:29 +02:00
Joachim Bauch ad1dea2780 Only send single "incall" message with "all: true" in clustered setup.
Previously each instance would send one message to all users in the cluster.
2022-07-04 15:26:12 +02:00
Joachim Bauch ece2903413 Trigger "joined" events through async messages. 2022-06-24 13:37:37 +02:00
Joachim Bauch 0115c97946 Refactor asynchronous events to central location. 2022-06-24 13:37:35 +02:00
Joachim Bauch 800ece1d90 Support combining ping requests of different rooms on the same backend. 2022-05-17 16:38:16 +02:00
Joachim Bauch 97f2a1d5f0 Add special events to update "incall" flags of all sessions. 2022-03-23 09:15:22 +01:00
Joachim Bauch fca30af201 Add API for transient room data. 2022-02-16 12:30:39 +01:00
Joachim Bauch 614c5f6e21 Fix issues reported by revive. 2022-02-11 12:09:42 +01:00
Joachim Bauch 76ad24ca62 Include room session id in "joined" events.
This helps with matching signaling sessions with sessions in Talk.
2021-12-17 16:02:22 +01:00
Joachim Bauch b398591447 Only allow subscribing if both users are in the same room and call.
Previously it was possible to subscribe any stream if the session id of the
publisher was known.
2021-09-23 09:05:25 +02:00
Joachim Bauch ce1b3fc6e2 Add more metrics on rooms / sessions / backends. 2021-08-10 08:50:41 +02:00
Joachim Bauch 3f19882612 No need to close NATS receiver channel.
Will be garbage collected once the room is removed and is not needed to
wakeup the reader (which is terminated in a "select" loop from the close
channel).
2021-06-07 10:29:50 +02:00
Joachim Bauch 21f3f506d1 Send more responses through the session to handle disconnected / resuming clients. 2021-06-04 15:40:43 +02:00
Joachim Bauch 52c1514978 Always use auth userid in ping requests.
Fixes issue introduced in 3a2adffab6 where some
ping requests were not evaluated correctly if a userid was given in the room
session data.
2021-05-19 16:24:15 +02:00
Joachim Bauch c8e4bfe007 Fix various issues found by golangci-lint. 2021-04-26 17:25:52 +02:00
Joachim Bauch 3a2adffab6 Get userid from room session data if present. 2021-04-22 14:18:35 +02:00
Joachim Bauch 9b0c4fab00 Update nats.go to 1.10.0 2021-04-13 16:47:28 +02:00
Joachim Bauch 8ba2e0ad64 Switch dependency tracking to Go modules.
With that bump minimum required version to Go 1.13.
2021-04-09 16:15:00 +02:00