Skip to content

Commit

Permalink
RPC implementation + FFI (#461)
Browse files Browse the repository at this point in the history
* Add types

* gen proto

* callback

* wip

* wip

* proto

* error

* wip

* Builds and passes

* close

* string

* string

* Fixes

* more fixes

* initial example

* wip

* compiling

* almost

* close

* somewhat working

* working sample

* cleanup

* ffi building

* delegate method

* ffi

* Fixes

* remove dead code

* Logging

* fixes

* fix

* fix

* logging

* comment out'

* handle

* room handle

* Revert "room handle"

This reverts commit c62dc0e.

* handle

* cb

* cleanup example

* cleanup debug logs

* cleanup other logs

* remove some logging

* SimplifyW

* errors

* fixes

* fixes

* fmt

* waiter

* 10k

* sender->caller

* update example

* perform_rpc_request->perform_rpc

* move methods to participant

* fmt

* cleanup

* ms

* opt

* panics

* fmt

* remove conn

* use webrtc uuid

* Move waiter

* refactor for readability

* Simplify

* uui

* flat

* fmt

* fix?

* fmt

* unused imports

* start time

* better

* fix

* store rpc state in one spot

* macro

* opts

* rusty

* simplify

* rm

* fmt

* remove initial wait

* Revert "Merge remote-tracking branch 'origin/main' into bcherry/rpc-full"

This reverts commit 961f3b6, reversing
changes made to 73106cf.

* fix

* v

* fix pb2

* proto

* commit

* p

* 123

* p

* stats

* wip

* wip

* wip

* import

* add min version check

* remove empty callbacks

* fixes

* rm

* 1

* fmt

* jr

* fmt
  • Loading branch information
bcherry authored Oct 24, 2024
1 parent 21149a4 commit 2aa9500
Show file tree
Hide file tree
Showing 26 changed files with 1,441 additions and 65 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 60 additions & 2 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ members = [
"wgpu_room",
"webhooks",
"api",
"rpc",
]
4 changes: 1 addition & 3 deletions examples/basic_room/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ async fn main() {
.to_jwt()
.unwrap();

let (room, mut rx) = Room::connect(&url, &token, RoomOptions::default())
.await
.unwrap();
let (room, mut rx) = Room::connect(&url, &token, RoomOptions::default()).await.unwrap();
log::info!("Connected to room: {} - {}", room.name(), String::from(room.sid().await));

room.local_participant()
Expand Down
13 changes: 13 additions & 0 deletions examples/rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "rpc_example"
version = "0.1.0"
edition = "2021"

[dependencies]
tokio = { version = "1", features = ["full"] }
env_logger = "0.10"
livekit = { path = "../../livekit", features = ["native-tls"]}
livekit-api = { path = "../../livekit-api"}
log = "0.4"
rand = "0.8"
serde_json = "1.0"
Loading

0 comments on commit 2aa9500

Please sign in to comment.