File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ is provided with a single argument then that is:
86
86
- ` info ` {Object}
87
87
- ` origin ` {String} The value in the Origin header indicated by the client.
88
88
- ` req ` {http.IncomingMessage} The client HTTP GET request.
89
- - ` secure ` {Boolean} ` true ` if ` req.connection .authorized ` or
90
- ` req.connection .encrypted ` is set.
89
+ - ` secure ` {Boolean} ` true ` if ` req.socket .authorized ` or
90
+ ` req.socket .encrypted ` is set.
91
91
92
92
The return value (` Boolean ` ) of the function determines whether or not to accept
93
93
the handshake.
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ class WebSocketServer extends EventEmitter {
225
225
const info = {
226
226
origin :
227
227
req . headers [ `${ version === 8 ? 'sec-websocket-origin' : 'origin' } ` ] ,
228
- secure : ! ! ( req . connection . authorized || req . connection . encrypted ) ,
228
+ secure : ! ! ( req . socket . authorized || req . socket . encrypted ) ,
229
229
req
230
230
} ;
231
231
You can’t perform that action at this time.
0 commit comments