Skip to content

Commit 5745169

Browse files
committed
fix: Example
1 parent b596730 commit 5745169

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const addr = multiaddr('/ip4/127.0.0.1/tcp/1234')
2323
server.listen(addr)
2424

2525
server.once('listening', () => {
26-
const client = Client(TCP.dial())
26+
const client = Client(TCP.dial(addr))
2727

2828
client.request('ping', {}, (err, data) => {
2929
if (err) throw err

example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const addr = multiaddr('/ip4/127.0.0.1/tcp/1234')
1717
server.listen(addr)
1818

1919
server.once('listening', () => {
20-
const client = Client(TCP.dial())
20+
const client = Client(TCP.dial(addr))
2121

2222
client.request('ping', {}, (err, data) => {
2323
if (err) throw err

0 commit comments

Comments
 (0)