replace usage of __connection_header with MessageEvent (#17)

This will replace #17.

But currently it still fails the unit tests.