Commit Graph

1362 Commits

Author SHA1 Message Date
kozabrada123 bb523842f5
Merge cdba76bcf9 into b87af21c31 2023-12-30 12:16:39 +00:00
kozabrada123 cdba76bcf9 api: split voice gateway and udp features, test for voice gateway in WASM 2023-12-30 13:17:12 +01:00
kozabrada123 2b729dc8fd chore: clarify UDP on WASM 2023-12-30 11:42:44 +01:00
kozabrada123 65213bb0fb fix: its the same 2023-12-29 12:54:46 +01:00
kozabrada123 e9ef2444d5 feat: udp error handling, create udp/backends 2023-12-29 12:49:03 +01:00
kozabrada123 2dadd38604
Merge branch 'dev' into feature/voice 2023-12-29 11:34:11 +01:00
kozabrada123 8413b66e22 chore: split voice udp 2023-12-29 11:33:14 +01:00
kozabrada123 9039e216be fix: properly using encrypted data, bad practice for buffer creation 2023-12-29 10:09:06 +01:00
kozabrada123 a5283c7780 fix: gateway connect using wrong url 2023-12-29 10:08:37 +01:00
kozabrada123 a5e4170641 fix: blunder 2023-12-28 09:29:49 +01:00
kozabrada123 ef4d6cffdb feat: first try at vgw wasm compat 2023-12-28 09:21:47 +01:00
kozabrada123 33400daa74 fix: duplicated gateway events 2023-12-28 09:21:08 +01:00
kozabrada123 a6d68383cc chore: yes clippy, you are special 2023-12-27 22:10:16 +01:00
kozabrada123 db4dcae579 feat: merge VoiceHandler into official development 2023-12-27 21:48:35 +01:00
kozabrada123 8aefa65093 chore: yes 2023-12-18 18:22:53 +01:00
bitfl0wer b87af21c31
Revert last commit 2023-12-17 22:16:53 +01:00
bitfl0wer e0492bb2f6
Add MANAGE_ENCRYPTION permission 2023-12-17 20:47:52 +01:00
kozabrada123 19dc9c8ffd feat: add sequence number 2023-12-17 13:47:11 +01:00
kozabrada123 3875e2e7ee small updates 2023-12-17 11:51:02 +01:00
kozabrada123 ba4818dbad feat: Public api! (sorta) 2023-12-16 21:56:14 +01:00
kozabrada123 17f5456841 feat: add untested sending & asbtract nonce generation 2023-12-16 20:19:09 +01:00
kozabrada123 2cd4dda9f4 feat: add ssrc definition (op 12) 2023-12-16 15:55:29 +01:00
kozabrada123 13c9e558fb chore: formatting 2023-12-16 15:31:48 +01:00
kozabrada123 c86a312615 feat: decryption? 2023-12-16 13:46:29 +01:00
kozabrada123 66f14a1c21 feat: add VoiceData reference to UdpHandler 2023-12-16 12:20:02 +01:00
kozabrada123 51ce2b8ef8 feat: add VoiceData struct 2023-12-16 12:19:19 +01:00
kozabrada123 5abd143145 chore: yes clippy, that is indeed an unneeded return statement 2023-12-16 11:38:40 +01:00
kozabrada123 6a5d58329d fix: attempt to fix failing wasm build 2023-12-16 11:25:33 +01:00
kozabrada123 a3ad3cce0b chore: clippy + other misc updates 2023-12-16 11:23:03 +01:00
kozabrada123 9eee1f74a3 chore: merge main 2023-12-16 10:30:01 +01:00
kozabrada123 03d47aebe8 Add UdpHandle 2023-12-16 09:40:47 +01:00
kozabrada123 b8d344d745 chore: rename events/webrtc to events/voice_gateway 2023-12-16 09:36:40 +01:00
Flori abd25b2040
merge backend branch into dev (#454) 2023-12-15 00:22:46 +01:00
Flori b319f3f720
Update docs (#453) 2023-12-10 18:51:32 +01:00
bitfl0wer ce6f09b657
Update documentation and examples 2023-12-10 18:40:03 +01:00
bitfl0wer 6b0fd238c8
Update cargo lock 2023-12-10 18:37:38 +01:00
bitfl0wer 1cbeba45c4
Merge branch 'dev' 2023-12-03 22:37:28 +01:00
bitfl0wer bbdcd35b60
Bump version 2023-12-03 22:35:45 +01:00
Flori 5ff206db8a
QoL Updates (#452)
- Make register and login not take an instance by ownership
- Add README information to `lib.rs`
- Add more derives to ChorusUser and Instance
- Impl From reqwest::Error for ChorusError
- Add support for .well-known #449 
- Remove "limited: bool" as an argument for `Instance::new` in favour of
dynamic instance limit checking #450
2023-12-03 22:31:21 +01:00
bitfl0wer 565670c5b7
Remove limited argument from Instance 2023-12-03 21:44:08 +01:00
bitfl0wer dc1991a9cc
Make get_limits_config part of public api 2023-12-03 21:42:41 +01:00
bitfl0wer 37125e7973
Remove "limited" parameter 2023-12-03 21:34:44 +01:00
Flori 081a938749
Get URLs from .well-known (#451)
Closes #449.

+ `Instance::from_root_url(root_url: &str, limited: bool)`: Creates a
new Instance by trying to get the relevant instance urls (UrlBundle)
from a root url. Shorthand for
`Instance::new(UrlBundle::from_root_domain(root_domain).await?)`
+ `UrlBundle::from_root_url(url: &str)`: Performs a few HTTP requests to
try and retrieve a UrlBundle from an instance's root URL. The method
tries to retrieve the UrlBundle via these three strategies, in order:
- GET: $url/.well-known/spacebar -> Retrieve UrlBundle via
$wellknownurl/api/policies/instance/domains
    - GET: $url/api/policies/instance/domains
    - GET: $url/policies/instance/domains
    
The URL stored at .well-known/spacebar is the instance's API endpoint.
The API stores the CDN and WSS URLs under the
$api/policies/instance/domains endpoint. If all three of the above
approaches fail, it is very likely that the instance is misconfigured,
unreachable, or that a wrong URL was provided.
+ Add clippy warnings for: `clippy::todo,
    clippy::unimplemented,
    clippy::dbg_macro,
    clippy::print_stdout,
    clippy::print_stderr`
2023-12-03 16:05:58 +01:00
bitfl0wer 0553ecb753
wasm-safari CI seems to be bugged - disabling for now 2023-12-03 15:57:03 +01:00
bitfl0wer 0c92ffb64d
Try giving macos-safari its own cache key to fix CI 2023-12-03 15:06:09 +01:00
bitfl0wer df7ee4d2fc
Change macOS Safari test strategy to no-fail-fast 2023-12-03 14:18:14 +01:00
bitfl0wer 4ad1201032
Rename from_root_domain to from_root_url 2023-12-03 13:39:23 +01:00
bitfl0wer 7c5d7f731c
Add Instance::from_root_domain(), change documentation wording 2023-12-03 13:37:32 +01:00
bitfl0wer 906f2234f7
Add test if an example well-known response gets parsed correctly. 2023-12-03 13:33:24 +01:00
bitfl0wer bae3bc3aef
Write test to check basic functionality of UrlBundle::from_root_domain() 2023-12-03 13:29:38 +01:00