Fix the echo server example to prevent ConnectionClosed error (#189)
Related #188 The echo server would generate ConnectionClosed error when the peer close the connection normally. This is because that `tungstenite` crate automatically reply Close message to the peer. Then StreamExt::forward() also forwards the Close message after the connection is closed.pull/101/head
parent
3af5ff5c3b
commit
dfa69eaea4
Loading…
Reference in new issue