Skip to content

Commit

Permalink
correct for decoding of message to map with string keys
Browse files Browse the repository at this point in the history
  • Loading branch information
slogsdon committed Jul 14, 2017
1 parent 38be119 commit 1fcec4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_socket/cowboy/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ defmodule WebSocket.Cowboy.Handler do
end
defp get_args(message, %State{use_topics: true} = state) do
case Poison.decode(message, as: Message) do
{:ok, mes} -> [mes.event, state, mes.data]
{:ok, mes} -> [mes["event"], state, mes["data"]]
_ -> [message, state]
end
end
Expand Down

0 comments on commit 1fcec4c

Please sign in to comment.