You are not logged in.
Pages: 1
Hi,
I've tested the project mORMot\SQLite3\Samples\31 - WebSockets
And works very well.
The problem I have is to include into an existing Lazarus GUI Application.
I need the WebSockets server in a separate thread, to grab data from the main form, and process it into json and send it to the web page.
I'm not using mode delphi on my application, and seems that is needed in order to use mormot. I'm wrong?
The demo can be extended using a GUI application instead of a command line one?
Thanks.
Offline
I tried with no success, you or anyone can make a small demo please?
Offline
Hi, I finally managed to get this working.
But it runs only on localhost, despite I set the local ip of my machine in the websockets Add method.
fServer.AddUrlWebSocket('whatever', '8888', False, 'localhost') <-- here I use my local ip
As well I change the ip on the html file.
Offline
You should do the following two thing:
1: change the port to something below 1000 ... eg 888
2: run the server as administrator
Offline
We finally used another solution:
https://github.com/codewar65/VTX_ClientServer
Offline
Pages: 1