8000 Add handle_connect_failure callback by Azolo · Pull Request #7 · dominicletz/websockex · GitHub
[go: up one dir, main page]

Skip to content

Add handle_connect_failure callback - #7

Merged
Azolo merged 7 commits into
masterfrom
handle_connect_failure
May 16, 2017
Merged

Azolo merged 7 commits into
masterfrom
handle_connect_failure

Conversation

@Azolo
@Azolo Azolo commented May 16, 2017
Copy link
Copy Markdown
Collaborator

handle_connect_failure was added to handle the cases where one would want to handle connection failures after trying to connect.

For example, trying to reconnect indefinitely like in #5 could be accomplished with

def handle_connect_failure(_failure_map, state) do
  {:reconnect, state}
end

But you could also change the where you are trying to connect to entirely or just update some parts of the conn returned in the failure_map.

@Azolo
Azolo merged commit 0d52a77 into master May 16, 2017
@Azolo
Azolo deleted the handle_connect_failure branch May 16, 2017 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0