bevy_rtc 0.3.1

A client-server library designed over WebRTC for Bevy
Documentation
1
2
3
4
5
6
use bevy::prelude::Event;
use bevy_matchbox::matchbox_socket::{Packet, PeerId};

/// The raw event to receive from a socket
#[derive(Debug, Clone, Event)]
pub struct SocketRecvEvent(pub (PeerId, Packet));