Simple-WebSocket-Server v2.0.0-rc1 Release Notes

Release Date: 2017-07-30 // over 4 years ago
  • ๐Ÿ’ฅ Breaking changes:

    • SocketServer::Connection::path is now split into path and query_string. This means that for instance auto server.endpoint["^/echo$"] will match both GET /echo HTTP/1.1 and GET /echo?a=b HTTP/1.1 requests.
    • ๐Ÿšš SocketServer::send has been moved to SocketServer::Connection::send
    • ๐Ÿšš Deprecated functions has been removed
    • Added SocketClient::Connection parameter to SocketClient's on_* functions

    Notable changes:

    • ๐Ÿ‘ Standalone Asio is now supported
    • ๐Ÿ– Handlers are now safely canceled on Client and Server destruction. This is especially useful when using an external io_service
    • โž• Added convenience SocketServer::Connection::Send(const std::string &, ...) function
    • Reformatting of the source code
    • โž• Added utility.hpp
    • โž• Added function for query string parsing
    • SocketClient::stop and SocketServer::stop now closes current connections