From: Christopher Date: Wed, 18 Mar 2020 20:54:00 +0000 (-0500) Subject: handle binary or list for subscribed message handling X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=44846b71733a8021fa19e270abe320609b6d6088;p=wampex_client.git handle binary or list for subscribed message handling --- diff --git a/lib/roles/subscriber.ex b/lib/roles/subscriber.ex index de25f2e..62536ec 100644 --- a/lib/roles/subscriber.ex +++ b/lib/roles/subscriber.ex @@ -55,6 +55,11 @@ defmodule Wampex.Roles.Subscriber do @impl true def handle(<<@unsubscribed, request_id>>) do + handle([@unsubscribed, request_id]) + end + + @impl true + def handle([@unsubscribed, request_id]) do {[{:next_event, :internal, :established}], request_id, :ok} end