From 251cba56d9103c9ac38f9b98b69ee953ce23111e Mon Sep 17 00:00:00 2001 From: Melonai Date: Wed, 14 Jul 2021 19:36:29 +0200 Subject: Started better typing for message handler --- lib/rook/request/request.ex | 2 +- lib/rook/share/share.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rook/request/request.ex b/lib/rook/request/request.ex index d0ee7c6..dabfd68 100644 --- a/lib/rook/request/request.ex +++ b/lib/rook/request/request.ex @@ -59,7 +59,7 @@ defmodule Rook.Request do end def handle_cast({:share_ice_candidate, candidate}, state) do - notify(state.token, "ice_candidate", %{candidate: candidate}) + notify(state.token, "share_ice_candidate", %{candidate: candidate}) {:noreply, state} end diff --git a/lib/rook/share/share.ex b/lib/rook/share/share.ex index fe626c2..e1760c7 100644 --- a/lib/rook/share/share.ex +++ b/lib/rook/share/share.ex @@ -61,7 +61,7 @@ defmodule Rook.Share do end def handle_cast({:request_ice_candidate, request_token, candidate}, state) do - notify(state.token, "ice_candidate", %{token: request_token, candidate: candidate}) + notify(state.token, "request_ice_candidate", %{token: request_token, candidate: candidate}) {:noreply, state} end -- cgit 1.4.1