Use event emitter.
Events 'connected' and 'statusUpdate' added.