Add method of MessageHandler

This handler is receive messages from JS