public void onConnect(long status, NginxHttpServerChannel data) {
}
});
Init.serverSentEventSubscribers.add(channel);
channel.sendHeader(200, ArrayMap.create("Content-Type", "text/event-stream").entrySet(), true, false);
channel.send("retry: 4500\r\n", true, false);
return null;
}
}
public static class SSEPub implements NginxJavaRingHandler {