Don't pass req in open handler

This commit is contained in:
Alex Hultman
2020-06-02 12:59:36 +02:00
parent 6735bad79c
commit 625efbc499
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ int main() {
},
.open = [](auto *ws, auto *req) {
.open = [](auto *ws) {
/* Open event here, you may access ws->getUserData() which points to a PerSocketData struct */
std::cout << "Something is: " << static_cast<PerSocketData *>(ws->getUserData())->something << std::endl;
},