Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ room_id
{:ok, %Jellyfish.Peer{id: peer_id}, peer_token} = Jellyfish.Room.add_peer(client, room_id, Jellyfish.Peer.WebRTC)

receive do
{:jellyfish, {:peer_connected, ^room_id, ^peer_id}} -> # handle the notification
{:jellyfish, %Jellyfish.Server.ControlMessage.PeerConnected{room_id: ^room_id, peer_id: ^peer_id} ->
# handle the notification
end

# Delete peer
:ok = Jellyfish.Room.delete_peer(client, room_id, peer_id)
```

List of structs representing server notifications can be found in [generated Protobuf file](lib/protos/jellyfish/server_notifications.pb.ex).

## Copyright and License

Copyright 2023, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=jellyfish)
Expand Down
2 changes: 1 addition & 1 deletion compile_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ for file in $files; do
count=$(($count + 1))
done

mix format "lib/protos/**/*.ex"
mix format "lib/protos/**/*.ex"
2 changes: 1 addition & 1 deletion protos