[erlang-questions] NineNines Bullet

Loïc Hoguin essen@REDACTED
Tue Apr 2 22:35:27 CEST 2013


Rooms is a bit out of scope. I agree it could use some more 
documentation though.

The basic idea is that when your process connects its pid is added to a 
list somewhere (gproc, gen_server, anything else). When a message is 
sent to the room, all pids in the list receive it. You can also 
broadcast when someone enters or leave the room. And you remove the pid 
from the list when it's gone (using monitors for example).

On 04/02/2013 10:27 PM, Lee Sylvester wrote:
> Hi Loïc,
>
> Yes, I spotted that.  It just doesn't seem very explanatory.  I was hoping for something a little bit more extensive.  Preferably something that used the concept of rooms.  The NineNines support page for Bullet is also a little thin… :-S  I guess I'm too much of a noob.
>
> Thanks,
> Lee
>
>
>
> On 2 Apr 2013, at 21:23, Loïc Hoguin <essen@REDACTED> wrote:
>
>> On 04/02/2013 10:08 PM, Lee Sylvester wrote:
>>> Hey guys,
>>>
>>> Does anyone here know of a good tutorial or chat example of NineNines Bullet handler for Cowboy?
>>
>> Have you looked at the clock example that comes with it? Building a chat on top of that is just making connection processes talk to each other using a registry like gproc or a gen_server that dispatches messages.
>>
>> --
>> Loïc Hoguin
>> Erlang Cowboy
>> Nine Nines
>> http://ninenines.eu
>


-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list