Skip to content

Commit 8b38a16

Browse files
author
Matt Branton
committed
Fixed start_link spec to include binary option on URL
1 parent d619e8a commit 8b38a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/websocket_client.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
-type opts() :: [opt()].
1919

2020
%% @doc Start the websocket client
21-
-spec start_link(URL :: string(), Handler :: module(), HandlerArgs :: list()) ->
21+
-spec start_link(URL :: string() | binary(), Handler :: module(), HandlerArgs :: list()) ->
2222
{ok, pid()} | {error, term()}.
2323
start_link(URL, Handler, HandlerArgs) ->
2424
start_link(URL, Handler, HandlerArgs, []).

0 commit comments

Comments
 (0)