[][src]Module lib3h::transport_wss

abstraction for working with Websocket connections based on any rust io Read/Write Stream

Structs

ConnectionIdFactory

A ConnectionIdFactory is a tuple of it's own internal id and incremental counter for each established transport

TlsCertificate
TransportWss

A "Transport" implementation based off the websocket protocol any rust io Read/Write stream should be able to serve as the base

WssInfo

Represents an individual connection

Enums

TlsConfig

Constants

DEFAULT_HEARTBEAT_MS

how often should we send a heartbeat if we have not received msgs

DEFAULT_HEARTBEAT_WAIT_MS

when should we close a connection due to not receiving remote msgs

Traits

IdGenerator

Type Definitions

Acceptor

A function that produces accepted sockets of type R wrapped in a TransportInfo

Bind

A function that binds to a url and produces sockt acceptors of type T

StreamFactory

A factory callback for generating base streams of type T