Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

server send push notification to client browser without using polling

I am developing a web app in which I want that when some changes in database occurs, server sends response to particular client(like push notification). And I want this notification to be sent client's browser. I don't want to use polling.

What can I do? I think it's possible using SSE, but I am not clear.
I want to know

  • Is it possible to send response to particular client without client's request(without polling).
  • How server will detect that particular client?

please help me.

like image 532
Rikin Thakkar Avatar asked Sep 10 '12 13:09

Rikin Thakkar


People also ask

How do I push client/server notifications?

At a high-level, the key steps for implementing push notifications are: Adding client logic to ask the user for permission to send push notifications, and then sending client identifier information to your server for storage in a database. Adding server logic to push messages to client devices.

Do push notifications use long polling?

Long polling is itself not a true push; long polling is a variation of the traditional polling technique, but it allows emulating a push mechanism under circumstances where a real push is not possible, such as sites with security policies that require rejection of incoming HTTP/S Requests.

Does push notification use Websocket?

Push notification is a form of real-time messaging, wherein a website could inform a user about some real-time event. Its usually implemented with WebSockets, which provide bi-directional communication between the client and the server.

Do you need consent for push notifications?

Push notifications can let users know when others have interacted with their social media accounts by liking photos or leaving comments, as seen in this Android push notification from Luca. Android and Fire OS don't require a user to opt in to receiving these notifications from apps.


1 Answers

There is Web Notification. And there you can see the browsers that support it.

like image 147
Gros Lalo Avatar answered Sep 21 '22 02:09

Gros Lalo