I’m making a chat box. The gui and scripts are done, now I’m working on the server.
Based on my script the threads function would be:
1st thread: BGE scripts + Server (send Data)
2nd thread: Server (receive data)
The second thread would always be waiting for data.
By the way, this is my server script: http://www.pasteall.org/30136/python