Merge userData with wsObject

This commit is contained in:
Alex Hultman 2020-06-05 16:49:26 +02:00
parent b4df9ebf5f
commit d1a2556fba
3 changed files with 25 additions and 24 deletions

2
examples/Upgrade.js vendored
View file

@ -22,7 +22,7 @@ const app = uWS./*SSL*/App({
context);
},
open: (ws) => {
console.log('A WebSocket connected with URL: ' + ws.userData.url);
console.log('A WebSocket connected with URL: ' + ws.url);
},
message: (ws, message, isBinary) => {
/* Ok is false if backpressure was built up, wait for drain */