Usage sample for daemon that deals with websockets and mongodb