Crate tx5_connection

source ·
Expand description
  • :warning: This code is new and should not yet be considered secure for production use!

Project Forum Chat

License: MIT License: Apache-2.0

§Tx5

  • tx5 - crates.io - The main holochain tx5 webrtc networking crate integrating the other code in this monorepo.

§Tx5 Support Crates

§tx5-connection

Holochain webrtc connection. Starts by sending messages over the sbd signal server, if we can upgrade to a proper webrtc p2p connection, we do so.

§WebRTC Backend Features

Tx5 can be backed currently by 1 of 2 backend webrtc libraries.

The go pion library is currently the default as it is more mature and well tested, but comes with some overhead of calling into a different memory/runtime. When the rust library is stable enough for holochain’s needs, we will switch the default. To switch now, or if you want to make sure the backend doesn’t change out from under you, set no-default-features and explicitly enable the backend of your choice.

Re-exports§

Structs§

  • A tx5 connection.
  • Receive messages from a tx5 connection.
  • Connection statistics.
  • A framed wrapper that can send and receive larger messages than the base connection.
  • Receive a framed message on the connection.
  • A signal server connection from which we can establish tx5 connections.
  • A stream of incoming p2p connections.
  • Initial configuration. If you would like to change this from the default, please call Tx5InitConfig::set_as_global_default before creating any peer connections.