> - spinning up a new chatting client goroutine (mainly the quoted code
> in OP) when a new user logs in, then there will be a new net.Conn for
> the client
> - since I'm only doing server side programming and one server needs to
> serve different clients, the only way I can think of is to store
Sending to the group instead.
On Sun, Jul 23, 2023 at 12:46 AM Eli Lindsey wrote:
>
> I’m taking a stab at answering, but I didn’t quite follow your intent and may
> have misunderstood your question. Please let me know if that’s the case. :)
>
> I'm having a hard time putting it into my code. Sp
I’m taking a stab at answering, but I didn’t quite follow your intent and may
have misunderstood your question. Please let me know if that’s the case. :)
> I'm having a hard time putting it into my code. Specifically, how to handle
> incoming new chats message and push to all web base clients. W
I know web based chatting service can be as complicated as possible, but I
want to build a web based chat server that is as simple as possible.
And the chapter 8 of the book "The Go Programming Language" at
https://github.com/adonovan/gopl.io/tree/master/ch8/chat
seems to be a perfect starting p