-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
Description
defmodule Foo.Client do
use WebSockex
require Logger
@name __MODULE__
@uri "..."
def child_spec([]) do
%{
id: @name,
start: {@name, :start_link, []},
}
end
def start_link() do
WebSockex.start_link(@uri, @name, :foo, name: @name)
end
def handle_frame({:text, msg}, state) do
Logger.info msg
raise "oops"
end
If something unexpected happens in handle_frame, the exception is completely swallowed - the process crashes but nothing is logged to the console.