Python help please :)
Go to solution
Solved by NotBen,
I believe the server is sending messages but they are not being received and so it waits before doing anything else.
To fix this you should probably be receiving the messages sent even if nothing is done with them.
def Chat(): NickName = input("Please enter a nickname: ->") message="" while message!= NickName+",end": s.recv(128) message =NickName + ","+ str(input("Send: ->")) s.sendall(message.encode()) s.close() input("\n\n press enter to close") print("successfully disconnected from the server")

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now