Send an event on connection
Use gevent.sleep and add on_connect callback