Move from the hand.
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Shogi.Api.Services
|
||||
var message = await socket.ReceiveTextAsync();
|
||||
if (string.IsNullOrWhiteSpace(message)) continue;
|
||||
logger.LogInformation("Request \n{0}\n", message);
|
||||
var request = JsonSerializer.Deserialize<ISocketRequest>(message);
|
||||
var request = JsonSerializer.Deserialize<ISocketMessage>(message);
|
||||
if (request == null || !Enum.IsDefined(typeof(SocketAction), request.Action))
|
||||
{
|
||||
await socket.SendTextAsync("Error: Action not recognized.");
|
||||
|
||||
Reference in New Issue
Block a user