Add concept of route yielding

This commit is contained in:
Alex Hultman
2019-01-22 18:30:25 +01:00
parent ed4e9f5c45
commit 9829f7fb37
4 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ int main(int argc, char **argv) {
/* Use this route to signal stop listening */
us_listen_socket_close(token);
token = nullptr;
}).ws<PerSocketData>("/ws", {
}).ws<PerSocketData>("/*", {
/* Settings */
.compression = uWS::DEDICATED_COMPRESSOR,
.maxPayloadLength = 16 * 1024 * 1024,