-
Hello, first of all thank you for this library it as pleasure to work with. I have a question about the API: uWebSockets.js/tests/Autobahn.js Line 25 in ea8d4c7 So I guess, either it has been the case in the past and changed, or it's missing from the underliying API? Why am I asking this? const app = uWS.App().ws('/:identifier', {
open: (ws, req) => {
console.log('A WebSocket connected!');
console.log('request identifier: ' + req.param[0]); // pseudo code
}, Let me know the best way to do it |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
ok found the trick https://unetworking.github.io/uWebSockets.js/generated/interfaces/httpresponse.html#upgrade |
Beta Was this translation helpful? Give feedback.
-
You're right, the user manual hasn't been updated - will fix |
Beta Was this translation helpful? Give feedback.
ok found the trick
i have to use the
upgrade
handlerhttps://unetworking.github.io/uWebSockets.js/generated/interfaces/httpresponse.html#upgrade