Merge userData with wsObject
This commit is contained in:
parent
b4df9ebf5f
commit
d1a2556fba
3 changed files with 25 additions and 24 deletions
2
examples/Upgrade.js
vendored
2
examples/Upgrade.js
vendored
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue