Skip to content

Commit

Permalink
Add missing notifications (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk authored May 5, 2023
1 parent 822c8a9 commit 68d9077
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/jellyfish/notifier.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule Jellyfish.Notifier do
@auth_timeout 2000

@doc """
Starts the Notifier process and connects to Jellyfish.
Starts the Notifier process and connects to Jellyfish.
Acts like `start/1` but links to the calling process.
Expand All @@ -38,10 +38,10 @@ defmodule Jellyfish.Notifier do
end

@doc """
Starts the Notifier process and connects to Jellyfish.
Starts the Notifier process and connects to Jellyfish.
Received notifications are send to the calling process in
a form of `{:jellyfish, msg}`, where `msg` is
a form of `{:jellyfish, msg}`, where `msg` is
`type` or `{type, room_id}` or `{type, room_id, (peer/component)_id}`.
Refer to [Jellyfish docs](https://jellyfish-dev.github.io/jellyfish-docs/) to learn more about server notifications.
Expand Down Expand Up @@ -115,8 +115,10 @@ defmodule Jellyfish.Notifier do
decoded_type =
case type do
"authenticated" -> :authenticated
"roomCrashed" -> :room_crashed
"peerConnected" -> :peer_connected
"peerDisconnected" -> :peer_disconected
"peerDisconnected" -> :peer_disconnected
"peerCrashed" -> :peer_crashed
"componentCrashed" -> :component_crashed
_other -> nil
end
Expand Down

0 comments on commit 68d9077

Please sign in to comment.