We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d668858 commit 95f61e3Copy full SHA for 95f61e3
examples/chat/src/listener.js
@@ -22,9 +22,6 @@ async function run() {
22
console.log(peerInfo.id.toB58String())
23
})
24
25
- // Start listening
26
- await nodeListener.start()
27
-
28
// Handle messages for the protocol
29
await nodeListener.handle('/chat/1.0.0', async ({ stream }) => {
30
// Send stdin to the stream
@@ -33,6 +30,9 @@ async function run() {
33
streamToConsole(stream)
34
31
35
32
+ // Start listening
+ await nodeListener.start()
+
36
// Output listen addresses to the console
37
console.log('Listener ready, listening on:')
38
peerListener.multiaddrs.forEach((ma) => {
0 commit comments