staspiter / delphi-websocket Goto Github PK
View Code? Open in Web Editor NEWAn easy-to-use lightweight Delphi WebSocket Server based on Indy
Home Page: https://staspiter.com
License: MIT License
An easy-to-use lightweight Delphi WebSocket Server based on Indy
Home Page: https://staspiter.com
License: MIT License
I modify the code to let the program quits when receipted 'quit' , but it's not working properly:
`
procedure TWebSocketDemo.Execute(AContext: TIdContext);
var
io: TWebSocketIOHandlerHelper;
msg: string;
begin
io := TWebSocketIOHandlerHelper(AContext.Connection.IOHandler);
io.CheckForDataOnSource(10);
msg := io.ReadString;
if msg='quit' then begin
Destroy;
exit;
end;
if msg = '' then
exit;
writeln(msg);
io.WriteString(msg);
end;
`
Hi,
When I try to connect to the server using client.html, the connection to the websocket is soon closed.
Debugging the WebSocketServer.pas unit I noticed that in the line:
TIdSSLIOHandlerSocketBase(AContext.Connection.IOHandler).PassThrough := false;
An exception occurs:
'Error accepting connection with SSL. Error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher'
I'm using the example from the 3-WSS folder, I edited the client.html file so that the websocket connects to wss://localhost:8080
and comment out the lines:
FSSLIOHanlder.SSLOptions.CertFile := 'cert.crt';
FSSLIOHanlder.SSLOptions.KeyFile := 'private.key';
because I don't have a certificate. Could that be the problem?
Is there any solution for this?
Hi
You might want to have your library listed here:
https://blogs.embarcadero.com/websockets-harness-real-time-power-in-your-delphi-apps/
:)
Hi, Stas!
Great library, thanks. Runs on Delphi 10.2 with google helps on JsonDataObjects.
Please, add link to readme, i`m found this on https://github.com/ahausladen/JsonDataObjects
sorry for my russian english )))
Hello Dear sir,
How can I use your repo in my Delphi repo(https://github.com/svanas/delphereum) . please help me I am facing this error in my project([dcc64 Fatal Error] web3.eth.blocknative.mempool.sgc.pas(14): F2613 Unit 'sgcWebSocket' not found.) please tell me how can i use your repo in this project.
please help me as soon as possible
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.