Add basic permessage-deflate, pass entire Autobahn

This commit is contained in:
Alex Hultman
2018-11-29 08:37:31 +01:00
parent 00cfac9215
commit 6c9ac88f50
11 changed files with 372 additions and 19 deletions
+4 -2
View File
@@ -31,8 +31,10 @@ HEADERS += \
../src/WebSocket.h \
../src/WebSocketData.h \
../src/WebSocketContext.h \
../src/WebSocketContextData.h
../src/WebSocketContextData.h \
../src/WebSocketExtensions.h \
../src/PerMessageDeflate.h
INCLUDEPATH += ../uSockets/src ../src
QMAKE_CXXFLAGS += -fsanitize=address
LIBS += -lasan -pthread -lssl -lcrypto -lstdc++fs
LIBS += -lasan -pthread -lssl -lcrypto -lz -lstdc++fs
+3
View File
@@ -12,6 +12,9 @@ int main(int argc, char **argv) {
uWS::App().get("/hello", [](auto *res, auto *req) {
res->end("Hello HTTP!");
}).ws<void>("/*", {
/*.compression = */true,
/*.maxPayloadLength*/
/*.open = */[](auto *ws, auto *req) {
},