feat(onMessage): add support for onmessage callbacks