tomkuijsten / restup

Webserver for universal windows platform (UWP) apps
MIT License
114 stars 48 forks source link

Using SocketActivityTrigger to make it work in the background #141

Open sibarsoumi opened 4 years ago

sibarsoumi commented 4 years ago

Should it not be possible to make it run in the background to receive requests and respond correspondingly even after the app is closed?

As described here, a background task with SocketActivityTrigger has to be created and the socket ownership of StreamSocketListener has to be transferred to the socket broker so that the background task is triggered when a request comes.

I tried but I couldn't make it work!