Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information