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

Why not use Server-Sent events? #1

Open
docteurklein opened this issue Oct 3, 2022 · 1 comment
Open

Why not use Server-Sent events? #1

docteurklein opened this issue Oct 3, 2022 · 1 comment

Comments

@docteurklein
Copy link

docteurklein commented Oct 3, 2022

Hi! Lovely project! I myself got interested in this idea and made a few POCs in haskell and rust, although I decided to do some kind of "in-band control" to avoid having arbitrary large notify payloads (there is a limit after all, and it wasn't meant for passing large json payloads).

Anyway, my question really was about using websockets, a (pretty much) obsolete protocol for the age of HTTP/2 or 3.
It forces Connection upgrades, which plays badly with proxies, cannot exploit HTTP/2 streams, and this is not exploiting the bi-directional features, since this tool is purely from server to clients (i.e Server-sent).

That's why I wonder why you didn't use Server-Sent events?

Thanks for reading :)

@Fxztam
Copy link

Fxztam commented Nov 5, 2022

Hi,
this is an interesting project, but it does not work for me:

  • Socket in HTML is open
  • NOTIFY channelname, 'message to send'; & SELECT pg_notify('channelname', 'message to send');
    no reaction on HTML client
  • People table & codes ok,
    INSERT and UPDATES : no reaction on HTML client.

=> server start with debug level :: msg="viper.ConfigFileNotFoundError: Config File \"pg_eventserv\" Not Found

What is wrong, please?

Thanks, Fried

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

2 participants