From 023afb9a3228d60392a18e70f85cdb6af5fa79fb Mon Sep 17 00:00:00 2001 From: Ryan Finnie Date: Sat, 5 Mar 2022 16:17:19 -0800 Subject: [PATCH] fix: typo in ws example (#417) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e95760..1f2a791 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,7 @@ server.on('listening', function () { console.log(`UDP tracker: udp://${udpHost}:${udpPort}`) // WS - const wsAddr = server.http.address() + const wsAddr = server.ws.address() const wsHost = wsAddr.address !== '::' ? wsAddr.address : 'localhost' const wsPort = wsAddr.port console.log(`WebSocket tracker: ws://${wsHost}:${wsPort}`)