Sending messages to UnIty through JS

I’m trying to send messaages to Unity trought Javascript, and I understand calling GetUnity().SendMessage(“MyGameObject”, “Function”, “true”); does a MyGameObject.SendMessage(“Function”, “true”); inside Unity, doesn’t it? I mean, calls all methods named Function of components attached to MyGameObject.

I have this method in one of them and it doesn’t get called. Anyone with experience with this topic?

public void Function(string boolean)
{
	[do something]
}

Ok, nevermind, was just some silly typo…