Commit graph

34 commits

Author SHA1 Message Date
Joachim Bauch 2468443572
Add "HandlerClient" interface to support custom implementations. 2024-04-23 11:03:30 +02:00
Joachim Bauch 3721fb131f
Don't include empty "auth" field in hello client messages. 2024-04-23 11:03:28 +02:00
Joachim Bauch 225f5bbd97
Add lock for TestClient connections to support writing from multiple goroutines. 2023-10-26 10:58:59 +02:00
Joachim Bauch 8e98ad3438
Add tests for dialout messages. 2023-10-26 10:43:52 +02:00
Joachim Bauch b006903a56
Support passing TTL when setting transient data from clients. 2023-10-12 11:07:11 +02:00
Joachim Bauch bd4f6524cb
Include remaining hellos in message if error occurred. 2023-06-12 10:48:16 +02:00
Joachim Bauch 2f6e2ba87c
Allow internal clients to set / change the "inCall" flags. 2023-02-20 13:25:37 +01:00
Joachim Bauch bb24bf5f0d
Implement switchto messages. 2023-01-30 15:41:55 +01:00
Joachim Bauch f5261135d2
Fix error message to log what is actually expected. 2023-01-18 15:43:16 +01:00
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
Renamed from src/signaling/testclient_test.go (Browse further)