I don’t know what it could be, but I think they saw each other. And that probably there is the clue to communicate between worlds.
I like that idea since one of the later synopsis says that Charming will have to risk his life to contact Snow I think whoever’s under the curse at the same time see each other trapped in the same room.