Crate naia_client_socket

Crate naia_client_socket 

Source
Expand description

§Naia Client Socket

A Socket abstraction over either a UDP socket on native Linux, or a unreliable WebRTC datachannel on the browser

Re-exports§

pub use naia_socket_shared as shared;

Structs§

IdentityReceiverImpl
Handles receiving an IdentityToken from the Server through a given Client Socket
PacketReceiverImpl
Handles receiving messages from the Server through a given Client Socket
PacketSenderImpl
Handles sending messages to the Server for a given Client Socket
Socket
A client-side socket which communicates with an underlying unordered & unreliable protocol

Enums§

IdentityReceiverResult
NaiaClientSocketError
An Error type specifically related to the Naia Client Socket This is under construction and needs to be cleaned up
ServerAddr
The server’s socket address, if it has been found

Traits§

IdentityReceiver
Used to receive an IdentityToken from the Client Socket
PacketReceiver
Used to receive packets from the Client Socket
PacketSender
Used to send packets from the Client Socket