fw42/honeymap — pull request #3 by adulau (2013-03-25 22:10:48+00:00)
Title: Send markers to all clients connected

If socket.emit is used, the marker is only sent to a single client. If you more than one client connected, it will send different markers sent to each client. Usually you want to broadcast the markers to all clients including the initial requesting client. As the global map should be consistent among clients.

broadcast.emit broadcasts to everyone except the triggering client. emit is kept for the triggering client.