diff --git a/examples/app/app.nim b/examples/app/app.nim index 2967f86..4276e54 100644 --- a/examples/app/app.nim +++ b/examples/app/app.nim @@ -226,7 +226,7 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string, let (hasSock, sock) = await punchdConn.inConnections.read if not hasSock: break - echo "got connection" + echo "accepted!" let msg = await sock.recv(1000) echo "received message: ", msg await sock.send("pong") @@ -237,6 +237,7 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string, Port(1234)) asyncCheck handleServerMessages(serverConn) let sock = await punchHole(punchdConn, serverConn, peerId, otherPeerId) + echo "connected!" await sock.send("ping") let msg = await sock.recv(1000) echo "received message: ", msg