Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect isn't doing anything #16

Open
jblack1395 opened this issue May 7, 2018 · 0 comments
Open

Connect isn't doing anything #16

jblack1395 opened this issue May 7, 2018 · 0 comments

Comments

@jblack1395
Copy link

I am doing:

   private SSEHandler sseHandler = new SSEHandler();
    private EventSource eventSource;

    private void startEventSource(String eventUrl, Map<String, String> extraHeaderParameters) {
        eventSource = new EventSource.Builder(eventUrl)
                .eventHandler(sseHandler)
                .build();
        eventSource.connect();
    }

    private void stopEventSource() {
        if (eventSource != null)
            eventSource.close();
        sseHandler = null;
    }
    public void requestReactiveSSE() {
        startEventSource("http://" + ipaddress + ":9094/quotes-reactive-paged?page=3&size=30", new HashMap<String, String>());
}

I get no information that it connected and nothing happens. What function do I connect to so I can process what should be received?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant