Dedicated Server Kit Transports

From gamevanilla wiki
Jump to: navigation, search

The kit has been tested with the KCP and Telepathy transports, but it should work with any other Mirror transport (as long as the transport exposes a port number, which the kit needs in order to be able to spawn game server instances dynamically).

The kit uses KCP as its default transport (because it is also the default transport used in Mirror). The kit includes a base TransportAdapter class that provides a generic way to switch transports in the kit very easily. This is needed because the base Transport class in Mirror does not expose a 'port number' property, so we need to provide transport-specific adapter implementations in order to be able to set the port number at runtime in a generic way. We include two default transport adapters in the kit, for KCP and Telepathy, and you can easily write your own for other transports based on these.