Update outdated examples (#1116)

Since v18.0.0 req is no longer passed to the "open" handler. You can access it in the "upgrade" handler instead.
This commit is contained in:
pavulon
2020-10-26 13:08:24 +01:00
committed by GitHub
parent b4e08ffb01
commit 2d65df86c7
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ uWS::SSLApp({
}).ws<UserData>("/*", {
/* Just a few of the available handlers */
.open = [](auto *ws, auto *req) {
.open = [](auto *ws) {
/* MQTT syntax */
ws->subscribe("sensors/+/house");
},