Add support for Beast Websockets (RIPD-1097)

This commit is contained in:
Miguel Portilla
2016-03-25 17:13:46 -04:00
committed by Howard Hinnant
parent f45e279e06
commit d7a778ce6a
11 changed files with 294 additions and 158 deletions

View File

@@ -23,6 +23,7 @@
namespace ripple {
// Detects legacy websockets only.
bool
Port::websockets() const
{
@@ -33,7 +34,9 @@ bool
Port::secure() const
{
return protocol.count("peer") > 0 ||
protocol.count("https") > 0 || protocol.count("wss") > 0;
protocol.count("https") > 0 ||
protocol.count("wss") > 0 ||
protocol.count("wss2") > 0;
}
std::string