Skip to content

Commit 023afb9

Browse files
authored
fix: typo in ws example (webtorrent#417)
1 parent 74065c7 commit 023afb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ server.on('listening', function () {
244244
console.log(`UDP tracker: udp://${udpHost}:${udpPort}`)
245245

246246
// WS
247-
const wsAddr = server.http.address()
247+
const wsAddr = server.ws.address()
248248
const wsHost = wsAddr.address !== '::' ? wsAddr.address : 'localhost'
249249
const wsPort = wsAddr.port
250250
console.log(`WebSocket tracker: ws://${wsHost}:${wsPort}`)

0 commit comments

Comments
 (0)