WebSockex v0.3.0 Release Notes
Release Date: 2017-06-17 // almost 7 years ago-
๐ฅ Breaking Changes
- The parameters for the
handle_connect/2
callback have been reversed. The order is now(conn, state)
.
โจ Enhancements
- โ Added initial connection timeouts.
(
:socket_connect_timeout
and:socket_recv_timeout
)- Can be used as
start
orstart_link
option or as aConn.new
option. :socket_connect_timeout
- The timeout for opening a TCP connection.:socket_recv_timeout
- The timeout for receiving a HTTP response header.
- Can be used as
start
andstart_link
can now take aConn
struct in place of a url.- โ Added the ability to handle system messages while opening a connection.
- โ Added the ability to handle parent exit messages while opening a connection.
- Improve
:sys.get_status
,:sys.get_state
,:sys.replace_state
functions.- These are undocumented, but are meant primarly for debugging.
๐ Bug Fixes
- Ensure
terminate/2
callback is called consistently. - ๐ฆ Ensure when termination when a parent exit signal is received.
- Add the
system_code_change
function so that thecode_change
callback is actually used.
- The parameters for the