EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
Posted: 06/03/2016 04:10:02
by Edo Cof (Standard support level)
Joined: 06/24/2011
Posts: 4

I am trying to connect to your WebSocketServer with javascript:
that.ws = new WebSocket("ws://");

After quite some time I think I figure it out how to do it. (I was trying through TElWebSocketServer, but no port, no event on connection accepted ...)
  s := TElHTTPSServer.Create(nil);
  s.SSLMode := false;
  s.OnWebSocketConnectionEstablished := WebSocketConnectionEstablished;

When I try to connect I get error in javascript console:
WebSocket connection to 'ws://' failed: Error during WebSocket handshake: Unexpected response code: 200

Firewall is off, there are no antivirus installed on computer.

1. Do you have any minimal code how should I set server, that I can connect to it.

2. How can I set listening port? 80 is reserved for Apache?
Posted: 06/03/2016 04:20:04
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

Please check next sample for details of WebSocket server implementation:
Posted: 06/03/2016 04:37:00
by Edo Cof (Standard support level)
Joined: 06/24/2011
Posts: 4

I try to connect to localhost and local IP, with allowed exception in firewall(localhost) and no firewall (local network - but I get connection refused.
WebSocket connection to 'ws://localhost:47710/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Posted: 06/06/2016 04:31:17
by Vsevolod Ievgiienko (Team)

but I get connection refused.

Do you try to connect to the above mentioned sample or your own code?



Topic viewed 1870 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!