public interface EventSource
EventSource.Emitter is the active half of the connection and allows to operate on the connection.
EventSource allows applications to be notified of events happening on the connection;
two events are being notified: the opening of the event source connection, where method
onOpen(Emitter) is invoked, and the closing of the event source connection,
onClose() is invoked.
|Modifier and Type||Interface and Description|
void onOpen(EventSource.Emitter emitter) throws IOException
Callback method invoked when an event source connection is opened.
Callback method invoked when an event source connection is closed.
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.