You are not logged in.
Pages: 1
I have done Example of an asynchronous HTTP WebSocket Echo Server with TWebSocketAsyncServer.
Point your browser to http://localhost:8888/ for initial page using the existing file "restws_simpleechserver.html"
What I've noticed is that when connecting for the first time, "Sender.Protocol.ConnectionID" starts at 2 or 3, not 1.
I hope this example is helpful and can be included in the official mORMot2 GitHub repository.
Thank you very much for such excellent work.
Offline
Thanks for the feedback and interest.
I guess it is just
https://github.com/synopse/mORMot2/blob … server.dpr
but using THttpWebsocketAsyncServer class, isn't it?
Offline
IMO, that kind of simple examples is prefect for anyone approaching mORMot2; what for an expert is "just ..." for a newcomer is "ah, that's what I was looking for"
Offline
Thanks for the feedback and interest.
I guess it is just
https://github.com/synopse/mORMot2/blob … server.dpr
but using THttpWebsocketAsyncServer class, isn't it?
Almost, it also has DoOnRequest which loads the file "restws_simpleechoserver.html"
Offline
IMO, that kind of simple examples is prefect for anyone approaching mORMot2; what for an expert is "just ..." for a newcomer is "ah, that's what I was looking for"
IMHO, I agree with you.
Thanks.
Offline
IMO, that kind of simple examples is prefect for anyone approaching mORMot2; what for an expert is "just ..." for a newcomer is "ah, that's what I was looking for"
Maybe we can generate many simpler examples using Claude Code and merge them into the master branch ![]()
Offline
Pages: 1