mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-15 14:59:33 +00:00
619992da80
Changed HttpRoutingHandler to use the general Slim.ServiceManager. Changed WebsocketRoutingHandler to a similar approach as HttpRoutingHandler. Implemented IRunOnStartup interface for handlers.
25 lines
490 B
C#
25 lines
490 B
C#
using MTSC.Common.WebSockets.RoutingModules;
|
|
|
|
namespace MTSC.UnitTests
|
|
{
|
|
public class EchoWebsocketModule : WebsocketRouteBase<string, string>
|
|
{
|
|
public override void ConnectionClosed()
|
|
{
|
|
}
|
|
|
|
public override void ConnectionInitialized()
|
|
{
|
|
}
|
|
|
|
public override void HandleReceivedMessage(string message)
|
|
{
|
|
this.SendMessage(message);
|
|
}
|
|
|
|
public override void Tick()
|
|
{
|
|
}
|
|
}
|
|
}
|