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

[WIP] Feature/async sse. Do not merge. #518

Draft
wants to merge 17 commits into
base: develop
Choose a base branch
from
Draft

Conversation

rma-rripken
Copy link
Collaborator

No description provided.

if (typeof (EventSource) !== "undefined") {
var clobId = "/TIME SERIES TEXT/6261044";
console.log("clobId: " + clobId + " encodeURIComponent: " + encodeURIComponent(clobId) + " encodeURI: " + encodeURI(clobId));
var source = new EventSource("http://localhost:7000/cwms-data/sse/clob"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I understand part of why it's not as common. Entirely new data type, doesn't seem too difficult to use but it's clear a fallback is required anyways so we might as well do the various long-polling methods.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though we should keep it in mind for things like CWMS Server/Client communication and say, team forecasting. And I can see some value over at OpenDCS/LRGS. But really just in a constrained context where you know it can work.

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

Successfully merging this pull request may close these issues.

2 participants