Update EchoServer example
This commit is contained in:
@@ -9,7 +9,7 @@ int main() {
|
|||||||
/* Very simple WebSocket echo server */
|
/* Very simple WebSocket echo server */
|
||||||
uWS::App().ws<PerSocketData>("/*", {
|
uWS::App().ws<PerSocketData>("/*", {
|
||||||
/* Settings */
|
/* Settings */
|
||||||
.compression = true,
|
.compression = uWS::SHARED_COMPRESSOR,
|
||||||
.maxPayloadLength = 16 * 1024,
|
.maxPayloadLength = 16 * 1024,
|
||||||
/* Handlers */
|
/* Handlers */
|
||||||
.open = [](auto *ws, auto *req) {
|
.open = [](auto *ws, auto *req) {
|
||||||
|
|||||||
Reference in New Issue
Block a user