use postMessage with host and port, fixes #4