mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-15 14:59:33 +00:00
Implemented websocket protocol and basic echo websocket module.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user