Simple-WebSocket-Server v2.0.0 Release Notes

Release Date: 2017-11-25 // over 6 years ago
  • ๐Ÿ’ฅ Breaking changes:

    • โœ‚ Removed ::SendStream::consume since users should create a new SendStream instead of using this function
    • โœ‚ Removed ::Connection::send(const std::string&,) convenience function in preparation for a better solution
    • Server::Request::remote_endpoint_address and Server::Request::remote_endpoint_port
      ๐Ÿ›  are now functions to reduce unnecessary instructions. Also fixed issue with the
      previous variables that were not correctly set.

    Notable changes:

    • โž• Added and resolved gcc and clang -Wsign-conversion warnings
    • โž• Added client support for Server Name Indication
    • Implemented timeouts for SocketClient
    • ๐Ÿšš All boost dependencies should now be removed when using standalone asio
    • โž• Added Client::Config::header for cases where additional header fields are needed for the handshake
    • Clients now accepts 101 status codes in the handshake response without checking the status code text. This resolves the issue of different servers responding with different status code texts.
    • Modernized all CMakeLists.txt files, and made it easier to use
      Simple-WebSocket-Server as a sub-project
    • โž• Added MSVC support to cmake files (not tested). Some tests are disabled due to
      lacking MSVC options.
    • Can now set maximum message size in WsServer:: and WsClient::config

Previous changes from v2.0.0-rc2

  • ๐Ÿ’ฅ Breaking change:

    • To reduce memory consumption and copying when sending the same message to several connections, SocketServer::Connection::send no longer consumes the buffer. The examples have been simplified according to this change.