0

So, the question is in the following: How?

I have already implemented the TCP server on Python. It sends the data to a client(also implemented on Python).

So now I want to make it on JavaScript

Any reccomendations or suggestions?

1 Answers1

1

You currently cannot connect to a TCP socket from plain JavaScript.

You have to rely on XHR or Websockets.

For more information see this answer.

Edit:

In Python you could use SocketIO to create a WebSocket. An example can be found here.

Community
  • 1
  • 1
Timo Hanisch
  • 224
  • 1
  • 7