Send Event or Rpc to whole connected player

Hello, Can i send a event or RPC to connected whole player.
Example : one player in a room and other player on lobby then server send to both player a single event to do some task how can i do that thing.
please :)