I want to make python start a background process. I am trying to make a 1v1 chat and I don't know how to verify always if new messages come in. Is there a library I can do this with?
Something like this:
def always(x):
    always program are running:
    if x != '': print x
while True:
    always(server.recv(1024))
    data = raw_input('>>>')
    client.send(data)
 
    