Ask coding questions

← Back to all posts
How To Make A Chat In Python
JeffreyChen13 (58)

Hi everyone! Does anyone know how to make a chat in Python? I tried to search it up and understand the code, but there is always something wrong. They give me server.py and client.py, but my main.py is empty, the code doesn't work. Does anyone know how to make it? Thank you!

Answered by ruiwenge2 (1101) [earned 5 cycles]
View Answer
Comments
hotnewtop
ruiwenge2 (1101)

hey @JeffreyChen13, i created a video conferencing app: https://replit.com/talk/share/EasyMeet-A-video-conferencing-app-I-made/142702

you can take a look at the chat feature that uses socketio, hope that helps!

JeffreyChen13 (58)

@ruiwenge2 I like it! Very nicely designed, I upvoted it! You are a very good coder.

JeffreyChen13 (58)

@ruiwenge, I tried running it as the website told me to, and I got this error:

connect.send("You are connected from:" + str(addr))
File "main.py", line 16, in <module>
  connect.send("You are connected from:" + str(addr))
TypeError: string argument without an encoding