mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: Transport default channel = Reliable (#3026)
This commit is contained in:
parent
0dea29d741
commit
c237db48df
@ -64,7 +64,7 @@ public virtual void ClientConnect(Uri uri)
|
||||
|
||||
/// <summary>Sends a message to the server over the given channel.</summary>
|
||||
// The ArraySegment is only valid until returning. Copy if needed.
|
||||
public abstract void ClientSend(ArraySegment<byte> segment, int channelId);
|
||||
public abstract void ClientSend(ArraySegment<byte> segment, int channelId = Channels.Reliable);
|
||||
|
||||
/// <summary>Disconnects the client from the server</summary>
|
||||
public abstract void ClientDisconnect();
|
||||
@ -93,7 +93,7 @@ public virtual void ClientConnect(Uri uri)
|
||||
public abstract void ServerStart();
|
||||
|
||||
/// <summary>Send a message to a client over the given channel.</summary>
|
||||
public abstract void ServerSend(int connectionId, ArraySegment<byte> segment, int channelId);
|
||||
public abstract void ServerSend(int connectionId, ArraySegment<byte> segment, int channelId = Channels.Reliable);
|
||||
|
||||
/// <summary>Disconnect a client from the server.</summary>
|
||||
public abstract void ServerDisconnect(int connectionId);
|
||||
@ -118,7 +118,7 @@ public virtual void ClientConnect(Uri uri)
|
||||
// Some transports like kcp support large max packet sizes which should
|
||||
// not be used for batching all the time because they end up being too
|
||||
// slow (head of line blocking etc.).
|
||||
public virtual int GetBatchThreshold(int channelId)
|
||||
public virtual int GetBatchThreshold(int channelId = Channels.Reliable)
|
||||
{
|
||||
return GetMaxPacketSize(channelId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user