# Config.hpp
This File On Github
Ask A Question
API: latest
module: oatpp-websocket
#include "oatpp-websocket/Config.hpp"
# Config
WebSocket configuration data.
namespace oatpp { namespace websocket {
class Config {}
}}
# Fields
Type | Name | Summary |
---|---|---|
bool | maskOutgoingMessages | Mask outgoing messages payload. If true - Outgoing messages will be masked with random 32-bit masking key. For servers should be false . For clients should be true . |
v_int32 | readBufferSize | Size of the read buffer in bytes. Buffer used to read payload of the message. The smaller is buffer the more iterations will be made in order to read the whole message. |
# Config::maskOutgoingMessages
Mask outgoing messages payload.
If true
- Outgoing messages will be masked with random 32-bit masking key.
For servers should be false
. For clients should be true
.
bool maskOutgoingMessages = false
# Config::readBufferSize
Size of the read buffer in bytes.
Buffer used to read payload of the message.
The smaller is buffer the more iterations will be made in order to read the whole message.
v_int32 readBufferSize = 1024