Simple-WebSocket-Server v2.0.0 Release Notes
Release Date: 2017-11-25 // almost 7 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
andServer::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::
andWsClient::config
- โ Removed
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.
- To reduce memory consumption and copying when sending the same message to several connections,