works with chat zyre example in front of it. TODO: received messages events