0

I want to implement a website that has different types of users. I want that when a user posts something, the admin will be notified automatically. I have read about WebSockets and found some examples but mostly of them are about chat application. I just want a notification update. I just want to have a simple one.

Hope you can help me with this.

3
Contributors
5
Replies
28
Views
2 Years
Discussion Span
Last Post by rubberman
0

Websockets can certainly do that or you could use a Comet server (push). However Comet has its cons. Meteor may be a solution http://meteorserver.org/ but not striclty php.

socket.io has some nice examples too. If I were to implement something like push notifications, I would probably start experimenting with this.

Push notifications are very similar to what goes on in chat apps, so the faact that you see those as the main examles is not surprising.

Edited by diafol

0

I really don't have any idea how to implement that one. My main problem is the connection between the admin and a normal user. I want a specific client to be updated as well whenever the admin updates something. I don't want all the logged in user to be notified.

0

Comet does look pretty fiddly to set up. I once tried to implement it from the APE site, but I failed miserably. I'd have a little play with the socket.io version and see how far you get. Then when you hit the wall with regard to user access come back. I'm sure that other people have tried what you're trying and there will be forums and tutorials online. I haven't seaarched for them, but i'd be very very surprised if there aren't any.

I've not been able to find much on socket.io and PHP, so perhaps wesockets would be better:

http://www.websocket.org/demos.html

Edited by diafol

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.