Fix example build error (#949)
* Fixed example build error * Update EchoServer.cpp
This commit is contained in:
@@ -14,6 +14,7 @@ int main() {
|
|||||||
.compression = uWS::SHARED_COMPRESSOR,
|
.compression = uWS::SHARED_COMPRESSOR,
|
||||||
.maxPayloadLength = 16 * 1024 * 1024,
|
.maxPayloadLength = 16 * 1024 * 1024,
|
||||||
.idleTimeout = 10,
|
.idleTimeout = 10,
|
||||||
|
.maxBackpressure = 1 * 1024 * 1204,
|
||||||
/* Handlers */
|
/* Handlers */
|
||||||
.open = [](auto *ws, auto *req) {
|
.open = [](auto *ws, auto *req) {
|
||||||
/* Let's make every connection subscribe to the "broadcast" topic */
|
/* Let's make every connection subscribe to the "broadcast" topic */
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ int main() {
|
|||||||
/* Settings */
|
/* Settings */
|
||||||
.compression = uWS::SHARED_COMPRESSOR,
|
.compression = uWS::SHARED_COMPRESSOR,
|
||||||
.maxPayloadLength = 16 * 1024,
|
.maxPayloadLength = 16 * 1024,
|
||||||
.idleTimeout = 10,
|
.idleTimeout = 10,
|
||||||
|
.maxBackpressure = 1 * 1024 * 1204,
|
||||||
/* Handlers */
|
/* Handlers */
|
||||||
.open = [](auto *ws, auto *req) {
|
.open = [](auto *ws, auto *req) {
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ int main() {
|
|||||||
.compression = uWS::SHARED_COMPRESSOR,
|
.compression = uWS::SHARED_COMPRESSOR,
|
||||||
.maxPayloadLength = 16 * 1024,
|
.maxPayloadLength = 16 * 1024,
|
||||||
.idleTimeout = 10,
|
.idleTimeout = 10,
|
||||||
|
.maxBackpressure = 1 * 1024 * 1204,
|
||||||
/* Handlers */
|
/* Handlers */
|
||||||
.open = [](auto *ws, auto *req) {
|
.open = [](auto *ws, auto *req) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user