{gun_notify, ConnPid, settings_changed, Settings}
ConnPid :: pid()
Settings :: map()gun_notify - Optional event notification
{gun_notify, ConnPid, settings_changed, Settings}
ConnPid :: pid()
Settings :: map()Optional event notification.
Only two event notifications currently exist:
settings_changed informs the user that the server has
modified its connection settings.
ping_ack informs the user that acknowledgement for a
user ping was received.
The pid of the Gun connection process.
Identifier for the event. Currently can only be
settings_changed or ping_ack.
Data for the event. Currently can only be the new connection settings, or the ping reference.
2.2: Message introduced.
handle_info({gun_notify, ConnPid, settings_changed, Settings}, State=#state{conn_pid=ConnPid}) -> %% Do something. {noreply, State}.