Skip to content

Commit

Permalink
[doc] Fix example to not use deprecated property
Browse files Browse the repository at this point in the history
Fixes #1743
  • Loading branch information
lpinca committed Apr 19, 2020
1 parent 6b4e2a8 commit 1a501d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 8080 });

wss.on('connection', function connection(ws, req) {
const ip = req.connection.remoteAddress;
const ip = req.socket.remoteAddress;
});
```

Expand Down

0 comments on commit 1a501d5

Please sign in to comment.