%% Supported Opts:
%% - {keepalive, integer()}: keepalive timeout in ms
%% - {extra_headers, list({K, V})}: a kv-list of headers to send in the handshake
%% (useful if you need to add an e.g. 'Origin' header on connection.
%% - {ssl_verify, verify_none | verify_peer | {verifyfun, }} : this is passed
%% through to ssl:connect/2,3.
This PR allows to set only the :extra_headers and :ssl_verify one (I need :extra_headers for adding an Authorization header to the connect request). I haven't added also the :keepalive one because I think is already handled in other ways but if you think it's useful we can add it too.
:websocket_client
supports these options:This PR allows to set only the
:extra_headers
and:ssl_verify
one (I need:extra_headers
for adding anAuthorization
header to the connect request). I haven't added also the:keepalive
one because I think is already handled in other ways but if you think it's useful we can add it too.