uWebSockets.js
uWebSockets.js copied to clipboard
req.getQuery() is returning undefiend insteated of empty string
as stated in docs it should return empty string
/** Returns the raw querystring (the part of URL after ? sign) or empty string. */
getQuery() : string;
Code:
get('/', (res, req) => {
console.log(req.getQuery());
res.writeStatus('201 Created').end("It's been real, Cupcake. Thanks. For everything! 🐣");
})
Am i doing something wrong here?