@WebServlet(description="EventSource access to SIMRacingApps",
urlPatterns="/DataEvent",
loadOnStartup=0)
public class DataEvent
extends javax.servlet.http.HttpServlet
/Data
" service first using the POST method to subscript to the data to receive events on.
Then you can call this service to start receiving the events.
For example: when using a JavaScript client, use the EventSource() constructor to receive the events.
You must include the same "sessionid" query string parameter in the URL that was used when POST was called. Also, you can pass an "interval" parameter, which defaults to 100 milliseconds.
Constructor and Description |
---|
DataEvent() |