Implemented websocket protocol and basic echo websocket module.

This commit is contained in:
2019-07-24 14:02:54 +03:00
parent 5d52c253aa
commit b2ea55e949
7 changed files with 342 additions and 9 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
using MTSC.Common.Http.ServerModules;
using MTSC.Common.WebSockets.ServerModules;
using MTSC.Exceptions;
using MTSC.Logging;
using MTSC.Server;
@@ -26,7 +27,7 @@ namespace MTSC_TestServer
.AddLogger(new DebugConsoleLogger())
.AddExceptionHandler(new ExceptionConsoleLogger())
//.AddHandler(new BroadcastHandler())
.AddHandler(new HttpHandler().AddHttpModule(new HelloWorldModule()))
.AddHandler(new WebsocketHandler().AddWebsocketHandler(new EchoModule()))
.Run();
}