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
f46aa96a
Commit
f46aa96a
authored
May 31, 2026
by
Michael Brachmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging websocket
parent
7cb87811
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
Ws.Server.Module.pas
emiMobileServer/Source/Ws.Server.Module.pas
+0
-2
Ws.Service.pas
emiMobileServer/Source/Ws.Service.pas
+3
-2
Ws.ServiceImpl.pas
emiMobileServer/Source/Ws.ServiceImpl.pas
+3
-3
No files found.
emiMobileServer/Source/Ws.Server.Module.pas
View file @
f46aa96a
...
...
@@ -74,8 +74,6 @@ begin
Url
:=
Url
+
'/'
;
Url
:=
Url
+
SERVER_PATH_SEGMENT
;
XDataServer1
.
BaseUrl
:=
Url
;
XDataServer1
.
ModelName
:=
''
;
Logger
.
Log
(
1
,
'StartWsServer: ModelName cleared to empty'
);
XDataServer1
.
ModelName
:=
AModelName
;
Logger
.
Log
(
1
,
'StartWsServer: ModelName set to ['
+
XDataServer1
.
ModelName
+
']'
);
SparkleHttpSysDispatcher3
.
Start
;
...
...
emiMobileServer/Source/Ws.Service.pas
View file @
f46aa96a
...
...
@@ -3,7 +3,8 @@ unit Ws.Service;
interface
uses
XData
.
Service
.
Common
;
XData
.
Service
.
Common
,
System
.
JSON
;
const
WS_MODEL
=
'Ws'
;
...
...
@@ -12,7 +13,7 @@ type
[
ServiceContract
,
Model
(
WS_MODEL
)]
IWebSocketService
=
interface
(
IInvokable
)
[
'{673FE678-D9EF-468D-89CB-CEF26E8758BC}'
]
[
HttpGet
]
function
WebSockerConnectionHandler
:
string
;
[
HttpGet
]
function
WebSockerConnectionHandler
:
TJSONObject
;
end
;
implementation
...
...
emiMobileServer/Source/Ws.ServiceImpl.pas
View file @
f46aa96a
...
...
@@ -21,7 +21,7 @@ type
[
ServiceImplementation
]
TWebSocketService
=
class
(
TInterfacedObject
,
IWebSocketService
)
public
function
WebSockerConnectionHandler
:
string
;
function
WebSockerConnectionHandler
:
TJSONObject
;
private
function
Health
:
string
;
procedure
ProcessJsonMessage
(
const
AMsg
:
string
);
...
...
@@ -31,7 +31,7 @@ implementation
{ TWebSocketService }
function
TWebSocketService
.
WebSockerConnectionHandler
:
string
;
function
TWebSocketService
.
WebSockerConnectionHandler
:
TJSONObject
;
var
Upgrader
:
IWebSocketUpgrader
;
WebSocket
:
IWebSocket
;
...
...
@@ -39,7 +39,7 @@ var
Msg
:
IWebSocketMessage
;
MsgStr
:
string
;
begin
Result
:=
''
;
Result
:=
nil
;
Logger
.
Log
(
1
,
'websocket begin-------'
);
Upgrader
:=
THttpServerContext
.
Current
.
Item
<
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