The method returns "undefined" if no query parameters are specified. Tested on websockets. Address example:
ws://127.0.0.1:8080 - undefined
ws://127.0.0.1:8080?123-123
It's an issue in the typings. It return undefined if there is no such key, while it returns empty string if there is such a key, with empty string as value. So the right typing is undefine | String
The method returns "undefined" if no query parameters are specified. Tested on websockets. Address example: ws://127.0.0.1:8080 - undefined ws://127.0.0.1:8080?123-123
expected result is an empty string current result - undefined typing - https://github.com/uNetworking/uWebSockets.js/blob/master/docs/index.d.ts#L214
version v20.30.0 node version v18.16.0
The version in which it was normal v19.2.0 and node 16.x