Change sendAll to emit / broadcast.