MessageEvent constructor example.