Re: How to implement a cherrypy server with long-polling enabled path?

ingo janssen <[email protected]> Thu, 19 Dec 2019 00:10:43 +0100
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
What DB are you using. Can it send messages? You can build a plug in
that sits on the cherrypy bus and listens to messages and then pushes
them to a SSE publisher.

For example something like
https://gist.github.com/ingoogni/169a2b8b1e484c71c95c55a2da2a65f0 to
listen to postgreSQL and something like this to publish the messages:
https://gist.github.com/ingoogni/a7f7c0fed9e96b3545e9a8c6139d80b0



On 18-12-2019 03:23, =E5=8C=97=E7=BE=8E38fule wrote:
> I am a newbie in cherrypy. I've done some research on google but didn't
> get much helpful information.
> Could someone please point out if cherrypy allows me to write a simple
> server that has long-polling enabled path?
> The scenario is like: whenever the database on backend has some updated
> information, it sends signals to the frontend to updates all relevant
> display accordingly.
>=20
> Is this achievable using cherrypy? Or I will need tornado-like
> framework? Could someone also point out a newbie-friendly tutorial for
> this purpose? Thanks.
>=20
> --=20
> You received this message because you are subscribed to the Google
> Groups "cherrypy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cherrypy-users+unsubscribe-/[email protected]
> <mailto:cherrypy-users+unsubscribe-/[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cherrypy-users/a2124195-11dc-46d2-baf2-=
7a9040bd9639%40googlegroups.com
> <https://groups.google.com/d/msgid/cherrypy-users/a2124195-11dc-46d2-baf2=
-7a9040bd9639%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>.

--=20
You received this message because you are subscribed to the Google Groups "=
cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion on the web visit https://groups.google.com/d/msgid/=
cherrypy-users/6101f483-0cff-3c8e-5b43-caa91bf87bfc%40gmail.com.