fake-socket 0.1.0

A simple fake socket for testing purpose.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Fake Socket

Usage:

```rust
use tokio::sync::mpsc;
use axum::extract::ws::Message;

let (_tx1, rx1) = mpsc::unbounded_channel();
let (tx2, mut rx2) = mpsc::unbounded_channel();

let socket = FakeSocket::<Message, axum::Error>::new(rx1, tx2);
// use it as a websocket in your test
```