Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emiMobile
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mac Stephens
emiMobile
Commits
550eb030
Commit
550eb030
authored
May 07, 2026
by
emsys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
routing!
parent
bc26796d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
Ws.Server.Module.dfm
emiMobileServer/Source/Ws.Server.Module.dfm
+1
-1
Ws.Server.Module.pas
emiMobileServer/Source/Ws.Server.Module.pas
+2
-2
Ws.Service.pas
emiMobileServer/Source/Ws.Service.pas
+2
-3
No files found.
emiMobileServer/Source/Ws.Server.Module.dfm
View file @
550eb030
...
...
@@ -8,6 +8,7 @@ object WsServerModule: TWsServerModule
object XDataServer1: TXDataServer
Dispatcher = SparkleHttpSysDispatcher
ModelName = 'Ws'
UnknownMemberHandling = Error
EntitySetPermissions = <>
SwaggerOptions.Enabled = True
SwaggerOptions.AuthMode = Jwt
...
...
@@ -23,7 +24,6 @@ object WsServerModule: TWsServerModule
end
object XDataServer1JWT: TSparkleJwtMiddleware
OnGetSecret = XDataServer1JWTGetSecret
TokenParam = 'token'
end
object XDataServer1WebSocket: TSparkleWebSocketMiddleware
AllowedOrigins.Strings = (
...
...
emiMobileServer/Source/Ws.Server.Module.pas
View file @
550eb030
...
...
@@ -70,10 +70,10 @@ begin
Url
:=
ABaseUrl
;
if
not
Url
.
EndsWith
(
'/'
)
then
Url
:=
Url
+
'/'
;
Url
:=
Url
+
SERVER_PATH_SEGMENT
;
XDataServer1
.
BaseUrl
:=
Url
;
XDataServer1
.
ModelName
:=
AModelName
;
XDataServer1JWT
.
TokenParam
:=
'token'
;
//XDataServer1JWT.Secret
:= 'token';
SparkleHttpSysDispatcher
.
Start
;
Logger
.
Log
(
1
,
Format
(
'Ws server module listening at "%s"'
,
[
Url
]));
end
;
...
...
emiMobileServer/Source/Ws.Service.pas
View file @
550eb030
...
...
@@ -9,13 +9,12 @@ const
WS_MODEL
=
'Ws'
;
type
[
ServiceContract
,
Model
(
WS_MODEL
),
Route
(
'ws'
)]
[
ServiceContract
]
[
Route
(
'ws'
)]
IWebSocketService
=
interface
(
IInvokable
)
[
'{673FE678-D9EF-468D-89CB-CEF26E8758BC}'
]
[
HttpGet
,
Route
(
'emimobile'
)]
procedure
WebSockerConnectionHandler
;
[
HttpGet
,
Route
(
'health'
)]
function
Health
:
string
;
end
;
implementation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment