Add shared compression for pub/sub

This commit is contained in:
Alex Hultman
2020-05-28 23:24:52 +02:00
parent ac97fef5eb
commit 8f7d642f3f
4 changed files with 49 additions and 18 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ int main() {
}
/* Simply broadcast every single message we get */
ws->publish("broadcast", message, opCode);
ws->publish("broadcast", message, opCode, true);
},
.drain = [](auto *ws) {
/* Check getBufferedAmount here */