Commit b3631f0a by Michael Brachmann

debugging websockerts

parent 315cba1f
...@@ -11,7 +11,6 @@ object WsServerModule: TWsServerModule ...@@ -11,7 +11,6 @@ object WsServerModule: TWsServerModule
end end
object XDataServer1: TXDataServer object XDataServer1: TXDataServer
Dispatcher = SparkleHttpSysDispatcher3 Dispatcher = SparkleHttpSysDispatcher3
ModelName = 'WsApi'
EntitySetPermissions = <> EntitySetPermissions = <>
SwaggerOptions.Enabled = True SwaggerOptions.Enabled = True
SwaggerUIOptions.Enabled = True SwaggerUIOptions.Enabled = True
......
...@@ -49,7 +49,8 @@ uses ...@@ -49,7 +49,8 @@ uses
XData.Sys.Exceptions, XData.Sys.Exceptions,
Common.Logging, Common.Logging,
Common.Middleware.Logging, Common.Middleware.Logging,
Common.Config, Vcl.Forms, IniFiles; Common.Config, Vcl.Forms, IniFiles,
Ws.ServiceImpl;
{%CLASSGROUP 'Vcl.Controls.TControl'} {%CLASSGROUP 'Vcl.Controls.TControl'}
...@@ -69,6 +70,7 @@ begin ...@@ -69,6 +70,7 @@ begin
Url := Url + '/'; Url := Url + '/';
Url := Url + SERVER_PATH_SEGMENT; Url := Url + SERVER_PATH_SEGMENT;
XDataServer1.BaseUrl := Url; XDataServer1.BaseUrl := Url;
RegisterServiceType(TWebSocketService);
XDataServer1.ModelName := AModelName; XDataServer1.ModelName := AModelName;
SparkleHttpSysDispatcher3.Start; SparkleHttpSysDispatcher3.Start;
Logger.Log(1, Format('Ws server module listening at "%s"', [Url])); Logger.Log(1, Format('Ws server module listening at "%s"', [Url]));
......
...@@ -93,7 +93,4 @@ begin ...@@ -93,7 +93,4 @@ begin
end; end;
end; end;
initialization
RegisterServiceType(TWebSocketService);
end. end.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment