存档1
This commit is contained in:
@@ -69,6 +69,12 @@ namespace Assets.MyGame.Scripts.Net
|
||||
nextHeartbeatTime = Time.realtimeSinceStartup + HeartbeatIntervalSeconds;
|
||||
}
|
||||
|
||||
/// <summary>获取指定类型 Socket 的完整连接地址(含 baseUrl,供外部拼接查询参数,如象棋 Hub 的 ?userId=)</summary>
|
||||
public string GetSocketPath(SocketType type)
|
||||
{
|
||||
return baseUrl + socketPaths[type];
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (Time.realtimeSinceStartup < nextHeartbeatTime)
|
||||
|
||||
Reference in New Issue
Block a user