#Confused with Mirror Transports

6 messages · Page 1 of 1 (latest)

nova atlas
#

Hey, I'm a bit confused about the transport selection in Mirror...
I recently decided to use Mirror mirror for my next project but I don't really know what transport to use.
In my old project, I could use both TCP and UDP for sending data back and forth. For example: sending messages and one-time packets that are important to be received on the other end was used for TCP.
Other packets such as position updates that were frequently sent were used for UDP as it wasn't really a big deal if some packets were lost occasionally.
So KCP is sort of UDP, and Telepathy is sort of TCP, so what exactly do I choose if I want to use both protocols?

Thanks for your help.

remote crypt
#

Use KCP, its UDP but its first channel is reliable.
Second channel is unreliable.

#

Telepathy only does reliable.

#

#🤝help-archive message

#

Channel example code

#

Kcp means technically you can do both actions of tcp and udp 🙂