diff --git a/MTSC/MTSC.csproj b/MTSC/MTSC.csproj
index 39e818f..888875c 100644
--- a/MTSC/MTSC.csproj
+++ b/MTSC/MTSC.csproj
@@ -5,13 +5,13 @@
netcoreapp2.1;net48;netstandard2.0;netcoreapp3.1;net5.0
- 3.2
+ 3.2.1
latest
Alexandru-Victor Macocian
MTSC
Modular TCP Server and Client
- 0.3.2
- 0.3.2
+ 0.3.2.1
+ 0.3.2.1
true
AnyCPU;x64
https://github.com/AlexMacocian/MTSC
diff --git a/MTSC/ServerSide/Handlers/WebsocketRoutingHandler.cs b/MTSC/ServerSide/Handlers/WebsocketRoutingHandler.cs
index 6b4cc57..ca253b4 100644
--- a/MTSC/ServerSide/Handlers/WebsocketRoutingHandler.cs
+++ b/MTSC/ServerSide/Handlers/WebsocketRoutingHandler.cs
@@ -204,11 +204,12 @@ namespace MTSC.ServerSide.Handlers
if (receivedMessage.Opcode == WebsocketMessage.Opcodes.Close)
{
client.ToBeRemoved = true;
- WebsocketMessage closeFrame = new WebsocketMessage
- {
- Opcode = WebsocketMessage.Opcodes.Close
- };
- this.QueueMessage(client, closeFrame);
+ this.QueueMessage(client, new byte[0], WebsocketMessage.Opcodes.Close);
+ return true;
+ }
+ else if (receivedMessage.Opcode == WebsocketMessage.Opcodes.Ping)
+ {
+ this.QueueMessage(client, new byte[0] ,WebsocketMessage.Opcodes.Pong);
return true;
}
else