Code Monkey home page Code Monkey logo

delphi-websocket's People

Contributors

staspiter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

delphi-websocket's Issues

Can't close the application?

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;
`

WSS does not work with Delphi 10.2 Tokyo

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?

How can use the repo in other project

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.