WebSockex v0.4.2 Release Notes

Release Date: 2018-12-02 // over 2 years ago
  • โœจ Enhancements

    • โž• Added ssl_options to WebSockex.Conn struct.
      • Documentation Pending...

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix pong frame not being a correct return type in spec
    • ๐Ÿ›  Fix bare ping and pong frames in spec
      • When there is no associated payload for their frame types
    • ๐Ÿ›  Fix handling SSL socket closings during the close_loop
    • โž• Add types and documentation for processes named with :via and :global
    • ๐Ÿ›  Fixed a crash when replying to a closed socket

Previous changes from v0.4.1

  • โœจ Enhancements

    • ๐Ÿ‘ Allow :via and :global tuples for named registration. This includes handling for cast/2 and send_frame/2.
    • Add access to response headers during handle_connect/2 via Conn.resp_headers.
    • โž• Add Conn.parse_url/1 to handle url to URI conversion.
    • ๐Ÿ‘ Allow Conn.new/2 to use a url string instead of a URI struct.
    • Automatically add a "/" path to a pathless url.
      • The HTTP request will break without a valid path!
    • โž• Add child_spec definitions for Elixir 1.5+
      • Or any version that exports Supervisor.child_spec/2
    • ๐Ÿ“š Some documentation tweaks

    ๐Ÿ› Bug Fixes

    • No longer invoke handle_disconnect if there is reason to exit from invoking a callback. (e.g. an exception was raised)
    • Properly handle unexpected SSL socket termination.
      • This seems pretty important, but I don't know...
    • Return a descriptive error when trying to use send_frame/2 in a callback.