From b5b2fb9e0a7df8193f1f45bc5170e97f6320167b Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sat, 30 Mar 2013 17:49:35 -0500 Subject: [PATCH] adds default client version to core config --- websocketpp/config/core.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/websocketpp/config/core.hpp b/websocketpp/config/core.hpp index 5794d2fbbd..9fea55fbbb 100644 --- a/websocketpp/config/core.hpp +++ b/websocketpp/config/core.hpp @@ -28,7 +28,10 @@ #ifndef WEBSOCKETPP_CONFIG_CORE_HPP #define WEBSOCKETPP_CONFIG_CORE_HPP -// Integers + + +// Non-Policy common stuff +#include #include // Concurrency @@ -101,6 +104,14 @@ struct core { /// User overridable Connection base class typedef websocketpp::connection_base connection_base; + /// WebSocket Protocol version to use as a client + /** + * What version of the WebSocket Protocol to use for outgoing client + * connections. Setting this to a value other than 13 (RFC6455) is not + * recommended. + */ + static const int client_version = 13; // RFC6455 + /// static const size_t connection_read_buffer_size = 512;