david
(David Taylor)
9 Noviembre, 2021 10:11
2
MessageBus es una opción; puede encontrar bibliotecas cliente para Ruby y JS aquí: GitHub - discourse/message_bus: A reliable and robust messaging bus for Ruby and Rack
Pero una solución más simple probablemente sea usar la función WebHooks de Discourse. De esa manera, Discourse puede hacer una solicitud web a su endpoint cada vez que haya un nuevo tema/publicación. Puede encontrar más información aquí:
A webhook is a way to notify external services about changes on the internet. It’s easier to setup, manage and develop than a Discourse plugin. Though, it does require you to program a little bit or understand its technical details.
In this howto , I’ll set up webhook to power a Github bot for referencing pull request brought in a forum. We’ll want to see a new comment on Github pull request when a new post has a link to it.
It’s a very simple process:
Publish a new post.
A webhook event happ…
5 Me gusta