doido-cable 0.0.11

Action Cable analogue: channels, broadcasts, Turbo-friendly pub/sub backends for Doido.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use doido_cable::channel;

#[channel]
pub struct RoomChannel;

#[test]
fn channel_macro_generates_inherent_name_and_stream() {
    // Callable without importing the ChannelName trait.
    assert_eq!(RoomChannel::channel_name(), "RoomChannel");
    assert_eq!(RoomChannel::stream_name(), "RoomChannel");
}