I'm trying to send TCP messages (based on user inputs in a web browser) to a standard TCP listening service on a server. i'm not sure how to do this in Ajax for the user in the browser.
Asked
Active
Viewed 661 times
0
-
AJAX is really about web requests. Maybe you want to create a web socket? – Jim B. Nov 20 '16 at 23:44
-
Do you know if the server side code is different if the client is using 'web socket'? for standard TCP i'm running .py file to accept TCP connections. do you know if i can still do this with 'web socket'? – Steve Short Nov 20 '16 at 23:48
-
I don't think it's possible if you can't modify the listener. Check this out: http://stackoverflow.com/questions/12407778/connecting-to-tcp-socket-from-browser-using-javascript – Jim B. Nov 20 '16 at 23:54