onOpen

var onOpen: () -> Unit?

Open handler.

Handler is called whenever the EventSource is connected, including after reconnects.