feat: websockets

This commit is contained in:
2022-12-20 12:20:52 -08:00
parent ab85578ccf
commit a5a67963be
24 changed files with 276 additions and 69 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ public sealed class CreateHandler: IHandler
writer.WriteString($"Room with id {roomId} already exists");
var sendData = writer.ToArray();
context.Connection.ReliableChannel.Send(sendData);
context.Connection.Reliable.Send(sendData);
_logger.Trace($"Player {context.Connection.Id}|{context.LobbyPlayer.Name} join failed to room {roomId}, room already exist");
return;
@@ -79,6 +79,6 @@ public sealed class CreateHandler: IHandler
writer.WriteString(room.Info.Map);
var sendData = writer.ToArray();
player.Connection.ReliableChannel.Send(sendData);
player.Connection.Reliable.Send(sendData);
}
}