1
This commit is contained in:
@@ -308,6 +308,18 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取房间专属 socket 地址(GET /api/Room/Assign?roomId=xxx)
|
||||
/// 返回:string(如 ws://8.137.163.153/fishinghub?instance=1)
|
||||
/// </summary>
|
||||
public static void RoomAssign(string roomId, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<string>(APIType.Room_Assign, new RoomAssignParam
|
||||
{
|
||||
roomId = roomId
|
||||
}, callback);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user