Skip Navigation

[Disccussion] How does memmy push notifications work? (ie does it use polling or websockets)

github.com /Memmy-App/memmy-push/blob/1e698a8bdb5a8c7b5e96f96d328fd6235094a006/app/Providers/RouteServiceProvider.php

Hi guys quick question about memmy's push notifications. Is the backened relying on polling the lemmy api (at a call rate of one api call per second)?~~ Or is it connecting to lemmy instances via websockets and relaying incoming websocket pushes? (lemmy uses long polling not web sockets 🤦 )

https://www.pubnub.com/blog/http-long-polling/

Looking at the code I'm guessing its relying on a polling based solution (but I might be wrong).

https://github.com/Memmy-App/memmy-push/blob/1e698a8bdb5a8c7b5e96f96d328fd6235094a006/app/Providers/RouteServiceProvider.php#L5

Just curious 😉

0
0 comments