Skip to content
Advertisement

How to create a continuously running socket client in python

I have been using TCP socket for a while now in python and my socket client closes after sending a message but I want to create a continuously running socket client that will keep sending messages as I already have a continuously running listener server. So the socket client code which I like to work on is below:

JavaScript

please advise

Advertisement

Answer

Try this:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement