Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-16 Thread Øyvind Teig
torsdag 16. juni 2016 17.19.58 UTC+2 skrev Øyvind Teig følgende: > > occam pi has/had mobile channels, where data pointed to by the pointer > that's implicitly sent over the channel will fall out of scope on the > sender side. I don't even think that data is converted to a const, the data > wo

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-16 Thread Øyvind Teig
occam pi has/had mobile channels, where data pointed to by the pointer that's implicitly sent over the channel will fall out of scope in the sender side. I don't even think that data is converted to a const, the data won't exist anymore. The language takes care of this. Sending a pointer across

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Eric Greer
Perfect. Thanks! On Wed, Jun 15, 2016, 12:44 PM Ian Lance Taylor wrote: > On Wed, Jun 15, 2016 at 12:25 PM, Eric Greer wrote: > > > > Thanks for the reply. What I'm trying to do is to make a web socket > server > > where all clients are sent broadcast messages. When the client connects, > a > >

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Ian Lance Taylor
On Wed, Jun 15, 2016 at 12:25 PM, Eric Greer wrote: > > Thanks for the reply. What I'm trying to do is to make a web socket server > where all clients are sent broadcast messages. When the client connects, a > channel is creates and registered in a global list of client channels. When > a client d

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Eric Greer
Thanks for the reply. What I'm trying to do is to make a web socket server where all clients are sent broadcast messages. When the client connects, a channel is creates and registered in a global list of client channels. When a client disconnects, the channel gets closed. The broadcaster does not k

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Ian Lance Taylor
On Tue, Jun 14, 2016 at 10:15 PM, wrote: > > What happens if the channel closes? > > I'm thinking about maintaining a list of channels (one for each websocket > client), then sending a message to all of them. The only problem is that > when the websocket client disconnects, their channel closes.