It will also work cross-domain if you open this page (you can send message from jcubic.pl to terminal.jcubic.pl and vice versa)
Select the checkbox to invoke emit method, that will also send the message to same page.
Messages:
count: