WebSockex v0.4.0 Release Notes

Release Date: 2017-07-12 // almost 7 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ”€ send_frame/2 is now synchronous and returns an error when connection is opening or closing.

    โœจ Enhancements

    • โž• Added debug printing for the :sys module.
    • Rework Conn.new to accept other protocols.
    • โž• Added an InvalidFrameError for frames unrecognized by Frame.encode_frame.
    • Go through the disconnect cycle when there's an error while with the {:reply, frame, state} callback response.
    • Send a close frame with the close code 1011 when there is an unexpected error. (Like an Exception in the middle of a callback)
    • โž• Add a more specific error when the :websockex application hasn't been started yet.
    • โž• Added a :name options for local registration.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix a couple of places where the call stack wasn't being properly tail-call optimized.