mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-03-02 11:01:12 -05:00
Merge userData with wsObject
This commit is contained in:
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 */
|
||||
|
||||
Reference in New Issue
Block a user