express-ws icon indicating copy to clipboard operation
express-ws copied to clipboard

Using req.params

Open Perodactyl opened this issue 4 years ago • 0 comments

I need a way to have a parameter in the url, and I cant find anything on it. I'm following the syntax used by the rest of express

app.ws("/:name/ws", (ws,rs)=>{
    //Need to get the parameter, usually with req.params.name
    //This probably would only except request to the actual URL, not including variation in the :name parameter
})

Perodactyl avatar Aug 17 '21 21:08 Perodactyl