[][src]Crate naia_client_socket

Naia Client Socket

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

Structs

Config

A Config object required to initialize a given Server/Client Socket

MessageSender

Handles sending messages to the Server for a given Client Socket

Packet

A Packet that can be sent to the Server

Enums

NaiaClientSocketError

An Error type specifically related to the Naia Client Socket This is under construction and needs to be cleaned up

SocketEvent

An Event that can be emitted by the Client Socket

Functions

find_my_ip_address

Given an IPv4 Address, attempt to find an available port on the current host

Type Definitions

ClientSocket

ClientSocket is an alias for a socket abstraction using either UDP or WebRTC for communications