Use doc instead of socket to emit to channels.