const source = new EventSource ( "/" ) ; source . addEventListener ( "custom" , ( event ) => { event . data ; } ) ; source . addEventListener ( "custom" , ( event ) => { } ) ; source . addEventListener ( "with-handle-event" , { handleEvent ( event ) { } } ) ;