rtc-io / rtc-switchboard

Node server side in memory signaller for rtc.io components
http://www.rtc.io/modules.html
57 stars 36 forks source link

`room:create` and `room:destroy` events #15

Closed DamonOehlman closed 10 years ago

DamonOehlman commented 10 years ago

It would be great to know when a new room has been created (i.e. the first participant of a room has joined) and a room is destroyed (the last participant has left).

silviapfeiffer commented 10 years ago

Who needs to know?

DamonOehlman commented 10 years ago

I do for when I integrate recording using janus (that is, once janus supports recording video).

silviapfeiffer commented 10 years ago

I asked because I wanted it for monitoring. Do we create an API on the signaling server?

DamonOehlman commented 10 years ago

It could be useful for that, but in the more general case (i.e. monitoring, stats collection) the data event that the switchboard generates is probably a better fit:

https://github.com/rtc-io/rtc-switchboard/blob/master/manager.js#L124

DamonOehlman commented 10 years ago

I also included some docs re that in the README when I added the event too :)

https://github.com/rtc-io/rtc-switchboard#logging-and-analytics-using-the-data-event

silviapfeiffer commented 10 years ago

Ha! There you go! :-)