Add the ability to bind events to the proxied function's associated emitter
The connect event is run immediately if the state is 'connected', same with
the disconnect event