You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(base) raphy@pc:~/hypercore/hyperswarm/hyperbeam$ node hyperbeam_chat.js
All writes are now complete
If I close the writer stream with CTRL+C , I get on the reader side:
(base) raphy@pc:~/hypercore/hyperswarm/hyperbeam$ node hyperbeam_chat.js
All writes are now complete
events.js:292
throw er; // Unhandled 'error' event
^
Error: Remote closed without sending a FINISH tag (possible MITM vector)
at NoisePeer._onclose (/home/raphy/hypercore/hyperswarm/hyperbeam/node_modules/noise-peer/index.js:304:64)
at Socket.emit (events.js:327:22)
at TCP.<anonymous> (net.js:673:12)
Emitted 'error' event on NoisePeer instance at:
at emitErrorNT (/home/raphy/hypercore/hyperswarm/hyperbeam/node_modules/readable-stream/lib/internal/streams/destroy.js:87:8)
at emitErrorAndCloseNT (/home/raphy/hypercore/hyperswarm/hyperbeam/node_modules/readable-stream/lib/internal/streams/destroy.js:57:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(base) raphy@pc:~/hypercore/hyperswarm/hyperbeam$
How to solve the problem?
The text was updated successfully, but these errors were encountered:
Hi @mafintosh !
In order to understand how to use Hyperbeam for programmatically exchanging messages, I played with a simple Duplex stream as follows:
On the other side I have the simple "plain" code:
Executing the code I get:
And on the
reader
side I get this:If I close the
writer stream
withCTRL+C
, I get on thereader
side:How to solve the problem?
The text was updated successfully, but these errors were encountered: