Skip to content

Commit 4a34b46

Browse files
SharkSharpme-no-dev
authored andcommitted
make the query parameters available by passing the request to WS_EVT_CONNECT (me-no-dev#559)
Signed-off-by: Arthur Frederico Neves <[email protected]>
1 parent e1be51f commit 4a34b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ AsyncWebSocketClient::AsyncWebSocketClient(AsyncWebServerRequest *request, Async
492492
_client->onData([](void *r, AsyncClient* c, void *buf, size_t len){ ((AsyncWebSocketClient*)(r))->_onData(buf, len); }, this);
493493
_client->onPoll([](void *r, AsyncClient* c){ ((AsyncWebSocketClient*)(r))->_onPoll(); }, this);
494494
_server->_addClient(this);
495-
_server->_handleEvent(this, WS_EVT_CONNECT, NULL, NULL, 0);
495+
_server->_handleEvent(this, WS_EVT_CONNECT, request, NULL, 0);
496496
delete request;
497497
}
498498

0 commit comments

Comments
 (0)