Add basic permessage-deflate, pass entire Autobahn
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user