Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery/Html as Client side #8

Open
MCun70 opened this issue Jul 14, 2016 · 2 comments
Open

jQuery/Html as Client side #8

MCun70 opened this issue Jul 14, 2016 · 2 comments

Comments

@MCun70
Copy link

MCun70 commented Jul 14, 2016

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,

@andremussche
Copy link
Owner

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 [email protected]:

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
Copy link

nkaku commented Mar 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants