Adds EventSource companion object.