Add upgrade handler to fix WebSocketBehavior template deduction on old examples (#1131)
This commit is contained in:
@@ -24,6 +24,7 @@ int main() {
|
||||
.idleTimeout = 10,
|
||||
.maxBackpressure = 1 * 1024 * 1024,
|
||||
/* Handlers */
|
||||
.upgrade = nullptr,
|
||||
.open = [](auto *ws) {
|
||||
/* Open event here, you may access ws->getUserData() which points to a PerSocketData struct */
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user