Faye v1.4.0 Release Notes

Release Date: 2020-07-31 // over 3 years ago
    • 0๏ธโƒฃ Implement TLS certificate verification and enable it by default in the Ruby client class Faye::Client
    • โž• Add a :tls option to the Ruby client with sub-field :verify_peer for configuring TLS verification
    • ๐Ÿ‘ Officially support the tls option in the Node.js client, whose contents are forward to the https and tls modules as appropriate

Previous changes from v1.3.0

    • ๐Ÿ‘Œ Support user:pass@ authorization in URIs and send Authorization headers from the Node HTTP transport
    • ๐Ÿ‘Œ Support IPv6 hostnames in URIs
    • ๐Ÿ‘ Allow credentials (cookies and Authorization headers) in cross-origin requests, by:
      • setting Access-Control-Allow-Origin to the value of the Origin header (not *)
      • enabling Access-Control-Allow-Credentials
    • Enable credentials when sending cross-origin requests
    • Don't disconnect WebSocket on page unload if autodisconnect is turned off
    • ๐Ÿ”’ Catch errors when creating a WebSocket, which happens when Content Security Policy blocks it, allowing other transports to be tried
    • ๐Ÿ›  Fix a bug in the client where it handles messages from other clients as though they're the server's response to its own messages, based on the id field; now we only treat messages as server responses if they contain successful: true
    • Stop sending an empty message list [] from the WebSocket client as a keep-alive mechanism since CometD does not accept this message
    • ๐Ÿ›  Fix deprecation warnings for using the new Buffer() constructor
    • Switch to the Apache 2.0 license