pg_eventserv icon indicating copy to clipboard operation
pg_eventserv copied to clipboard

Why not use Server-Sent events?

Open docteurklein opened this issue 2 years ago • 1 comments

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 :)

docteurklein avatar Oct 03 '22 07:10 docteurklein

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

Fxztam avatar Nov 05 '22 18:11 Fxztam