libp2p::websocket

Type Alias WrapperFn

Source
pub type WrapperFn<T> = fn(_: Connection<T>, _: ConnectedPoint) -> RwStreamSink<BytesConnection<T>>;
Available on crate feature websocket and non-WebAssembly only.
Expand description

Function type that wraps a websocket connection (see. wrap_connection).