express-ws
express-ws copied to clipboard
Using req.params
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
})