Correct, the Wifi is the must here and that 2 (or multiple) people are on the same Wifi connection, independently if the Wifi is public or private. So you can create your own chatroom on your own Wifi at home if you want OR if you are on a event and connected to the Wifi of the event you can open WiFriends and chat with others connected to the same Wifi. If you disconnect from the Wifi then you loose access to the chatroom.
which other possibilities do you foresee here, besides the chatting?