Example of using the PostMessage protocol