Commit Graph
25 Commits
Author SHA1 Message Date
Joachim Bauch 156bc360ff Add hello version "2.0" that authenticates connections using a JWT. 2022-08-03 16:33:45 +02:00
Joachim Bauch 532587eb9f Don't log message as string twice in case of errors. 2022-07-12 13:31:40 +02:00
Joachim Bauch faf7544f2d Add methods to get recipient of control/message messages. 2022-07-12 12:10:00 +02:00
Joachim Bauch 4f84d3ad0d Fix accessing sender when checking received control messages. 2022-07-12 11:55:51 +02:00
Joachim Bauch 7d9970713d Add methods to send internal messages. 2022-07-12 11:55:26 +02:00
Joachim Bauch d2036fcbd6 Add unexpected messages to ignore list instead of returning error. 2022-07-12 10:10:15 +02:00
Joachim Bauch 66e502dc9b Fix handling of "unshareScreen" messages and add test.
Also update tests for "requestoffer" / "sendoffer".
2022-07-08 17:09:22 +02:00
Joachim Bauch a1f62ffd18 Add missing lock call for timeouts in waiter methods. 2022-07-08 14:19:13 +02:00
Joachim Bauch d3f8876d25 Merge pull request #281 from strukturag/refactor-async-events
Clustering support
2022-07-07 16:24:15 +02:00
Joachim Bauch f7db8a38e1 Send initial "welcome" message when clients connect.
This can be used to detect server features before performing the
actual "hello" handshake.
2022-07-07 09:57:10 +02:00
Joachim Bauch 0e144906a4 Added tests for clustered behaviour. 2022-06-30 11:35:33 +02:00
Joachim Bauch 6fa4a8b434 Also return in-order list of "join" events. 2022-04-11 17:01:08 +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 99f5fb0be1 Add method "RunUntilJoinedAndReturnIgnored". 2022-02-16 12:21:45 +01:00
Joachim Bauch 42a5506da7 Support multiple "joined" entries when waiting for clients. 2022-02-16 12:21:44 +01:00
Joachim Bauch 614c5f6e21 Fix issues reported by revive. 2022-02-11 12:09:42 +01:00
Joachim Bauch 707b125730 Check individual audio/video permissions on change.
If a client publishes audio/video and no longer has the video permission,
the whole publisher will be closed. Previously this was only checking
the generic "media" permission.
2021-11-08 12:08:14 +01:00
Joachim Bauch 4d991725c3 Add method to get pending messages from testclient. 2021-06-08 13:45:58 +02:00
Joachim Bauch 9a473b9bf1 Wait for close message to be processed in test client before closing. 2021-06-07 17:14:31 +02:00
Joachim Bauch 0d1c546355 Use buffered channel to receive read error. 2021-06-04 15:13:34 +02:00
Joachim Bauch 5d87df4b8e Return error if unknown hello session was received while waiting for joined events. 2021-04-27 08:48:36 +02:00
Joachim Bauch 9cf796640c Don't require certain order of own/other "joined" events. 2021-04-27 08:39:19 +02:00
Joachim Bauch c8e4bfe007 Fix various issues found by golangci-lint. 2021-04-26 17:25:52 +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