File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
app/templates/server/config Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = function(socketio) {
2727 //
2828 // ex: DEBUG: "http*,socket.io:socket"
2929
30- // We can authenticate socket.io users and access their token through socket.handshake. decoded_token
30+ // We can authenticate socket.io users and access their token through socket.decoded_token
3131 //
3232 // 1. You will need to send the token in `client/components/socket/socket.service.js`
3333 //
@@ -38,10 +38,8 @@ module.exports = function(socketio) {
3838 // }));
3939
4040 socketio . on ( 'connection' , function ( socket ) {
41- socket . address =
42- socket . handshake . address !== null ?
43- socket . handshake . address . address + ':' + socket . handshake . address . port :
44- process . env . DOMAIN ;
41+ socket . address = socket . request . connection . remoteAddress +
42+ ':' + socket . request . connection . remotePort ;
4543
4644 socket . connectedAt = new Date ( ) ;
4745
You can’t perform that action at this time.
0 commit comments