Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenServer options passing #47

Open
ontofractal opened this issue Aug 6, 2016 · 1 comment
Open

GenServer options passing #47

ontofractal opened this issue Aug 6, 2016 · 1 comment

Comments

@ontofractal
Copy link

Hi, is there a reason not to pass options to the websocket_client start_link function? For example, name option for process registration. Am I missing something important about this code? Thx!

-spec start_link(URL :: string(), Handler :: module(), Args :: list()) ->
    {ok, pid()} | {error, term()}.
start_link(URL, Handler, Args) ->
    start_link(URL, Handler, Args, []).
@isaacsanders
Copy link

isaacsanders commented Jul 17, 2017

You are looking at the definition for websocket_client:start_link/3. websocket_client:start_link/4 is the function you are looking for.

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

No branches or pull requests

2 participants