Just curious as to what would be the Ideal way to go about creating a chat room between q clients based around a server. Would it be to push messages from sending client to server and then have receiving client pull these messages from server?
Hello @ngumbo1,
My thinking is that it would be best to send the message to the server which then sends it to the correct user. Otherwise, how would the client know to pull the messages.
Welcome feedback from others here too!
Kind regards,
Leah
Hey Leah,
After I send the message to the client what would be preferable way of then sending to other user from server?
I’d suggest that you would need to create a function on the server where the client can send the message and username to and the function would work to identify the correct connection to go across.
Hope that helps,
Leah