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
315cba1f
Commit
315cba1f
authored
Jun 01, 2026
by
Michael Brachmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging websocket
parent
3c45b28a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
Ws.Server.Module.dfm
emiMobileServer/Source/Ws.Server.Module.dfm
+1
-1
Ws.Service.pas
emiMobileServer/Source/Ws.Service.pas
+2
-1
Ws.ServiceImpl.pas
emiMobileServer/Source/Ws.ServiceImpl.pas
+8
-0
No files found.
emiMobileServer/Source/Ws.Server.Module.dfm
View file @
315cba1f
...
...
@@ -11,7 +11,7 @@ object WsServerModule: TWsServerModule
end
object XDataServer1: TXDataServer
Dispatcher = SparkleHttpSysDispatcher3
ModelName = 'Ws'
ModelName = 'Ws
Api
'
EntitySetPermissions = <>
SwaggerOptions.Enabled = True
SwaggerUIOptions.Enabled = True
...
...
emiMobileServer/Source/Ws.Service.pas
View file @
315cba1f
...
...
@@ -7,12 +7,13 @@ uses
System
.
JSON
;
const
WS_MODEL
=
'Ws'
;
WS_MODEL
=
'Ws
Api
'
;
type
[
ServiceContract
,
Model
(
WS_MODEL
)]
IWebSocketService
=
interface
(
IInvokable
)
[
'{673FE678-D9EF-468D-89CB-CEF26E8758BC}'
]
[
HttpGet
]
function
Ping
:
TJSONObject
;
[
HttpGet
]
function
WebSockerConnectionHandler
:
TJSONObject
;
end
;
...
...
emiMobileServer/Source/Ws.ServiceImpl.pas
View file @
315cba1f
...
...
@@ -12,6 +12,7 @@ type
[
ServiceImplementation
]
TWebSocketService
=
class
(
TInterfacedObject
,
IWebSocketService
)
public
function
Ping
:
TJSONObject
;
function
WebSockerConnectionHandler
:
TJSONObject
;
end
;
...
...
@@ -24,6 +25,13 @@ uses
Sparkle
.
Sys
.
Timer
,
Sparkle
.
HttpServer
.
Context
;
function
TWebSocketService
.
Ping
:
TJSONObject
;
begin
Result
:=
TJSONObject
.
Create
;
Result
.
AddPair
(
'status'
,
'ok'
);
TXDataOperationContext
.
Current
.
Handler
.
ManagedObjects
.
Add
(
Result
);
end
;
function
TWebSocketService
.
WebSockerConnectionHandler
:
TJSONObject
;
var
Upgrader
:
IWebSocketUpgrader
;
...
...
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