Client.ChangeTransport Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
ChangeTransport(IClient)
Disconnects the client if it's connected and swaps out the transport it's using.
public void ChangeTransport(IClient newTransport)
Parameters
IClient | newTransport |
The new transport to use for sending and receiving data. |
Remarks
This method does not automatically reconnect to the server. To continue communicating with the server, Connect(string, int, byte, Message, bool) must be called again.