mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Add basic send and receive test
This commit is contained in:
@ -37,6 +37,8 @@ namespace osu.Game.Online.Spectator
|
||||
|
||||
private readonly SpectatorState currentState = new SpectatorState();
|
||||
|
||||
public event Action<FrameDataBundle> OnNewFrames;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
@ -145,6 +147,7 @@ namespace osu.Game.Online.Spectator
|
||||
Task ISpectatorClient.UserSentFrames(string userId, FrameDataBundle data)
|
||||
{
|
||||
Console.WriteLine($"{connection.ConnectionId} Received frames from {userId}: {data.Frames.First()}");
|
||||
OnNewFrames?.Invoke(data);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user