andremussche/DelphiWebsockets

jQuery/Html as Client side

Opened this issue · 2 comments

Hi Andre,
I'm trying code in Delphi 10. Works fine while server and client are both Delphi.
But when I try to connect delphi server side from jQuery\Html page I had some problems.
I use jQuery code from https://www.websocket.org/echo.html
When I test the jQuery client with echo server
( var wsUri = "ws://echo.websocket.org/"; )
works fine. ("https://www.websocket.org/echo.html")
But when I tried to connect delphi server
( //var wsUri = "ws://localhost:55555/"; )
jquery code finds the server and connects successfully. Also disconnects if I stop the dlephi server side.
But nothing happens on the server side while client connecting. doent fire OnConnection and doesnt increase the ConnectionCount for example.
EmitEventToAll makes nothing on the jQuery side too.

Do I missing something here?

Regards,

I think the websocket protocol has changed in the mean time
I should dive into this but very busy right now

2016-07-15 0:17 GMT+02:00 MCun70 notifications@github.com:

Hi Andre,
I'm trying code in Delphi 10. Works fine while server and client are both
Delphi.
But when I try to connect delphi server side from jQuery\Html page I had
some problems.
I use jQuery code from https://www.websocket.org/echo.html http://url
When I test the jQuery client with echo server
( var wsUri = "ws://echo.websocket.org/"; )
works fine. ("https://www.websocket.org/echo.html")
But when I tried to connect delphi server
( //var wsUri = "ws://localhost:55555/"; )
jquery code finds the server and connects successfully. Also disconnects
if I stop the dlephi server side.
But nothing happens on the server side while client connecting. doent fire
OnConnection and doesnt increase the ConnectionCount for example.
EmitEventToAll makes nothing on the jQuery side too.

Do I missing something here?

Regards,


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AC5Ijs_4S3m2a4R3vAx--0Q6_TmMGvjtks5qVrVcgaJpZM4JM52o
.

nkaku commented

I am facing the same issue. Opened a new topic for it.