-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: develop
Are you sure you want to change the base?
Conversation
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…ot deploying into tomcat.
…etting picked up.
No description provided.