Files
MTSC/MTSC.UnitTests/EchoWebsocketModule2.cs
Alexandru Macocian 619992da80 Switched server resources to Slim.ServiceManager.
Changed HttpRoutingHandler to use the general Slim.ServiceManager.
Changed WebsocketRoutingHandler to a similar approach as HttpRoutingHandler.
Implemented IRunOnStartup interface for handlers.
2021-03-12 14:05:55 +01:00

25 lines
491 B
C#

using MTSC.Common.WebSockets.RoutingModules;
namespace MTSC.UnitTests
{
public class EchoWebsocketModule2 : WebsocketRouteBase<byte[], byte[]>
{
public override void ConnectionClosed()
{
}
public override void ConnectionInitialized()
{
}
public override void HandleReceivedMessage(byte[] message)
{
this.SendMessage(message);
}
public override void Tick()
{
}
}
}