Webhook listener implementation example in Kotlin

Can someone provide me an example of a listener in Kotlin for Android that listens to some specified URL and prints Info once it gets something?

If I understood right, there is no library for Kotlin that provides listeners?

I searched through similar topics but non of them provides me base code that can be reused in my case. Most tutorials about POST/GET I could find seem to be concerned with either sending or directly requesting data from a website, but not with continually listening for it.


How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum