Yii Framework Forum: Real-Time Notification Implementation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Real-Time Notification Implementation Rate Topic: -----

#1 User is offline   jcagentzero 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 14-October 11
  • Location:Philippines

Posted 25 October 2013 - 10:42 PM

Hi All,

I am going to create an application using yii framework that requires real-time notification. I am planning to use the usual way where I will check the database for any changes in a given time interval. Do you have a better way to implement this?

Thanks in advance!
Thank you and regards,

jcagentzero

http://www.jundycosmod.com

If you think this post is helpful, please don't hesitate to click + button.
1

#2 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 26 October 2013 - 05:24 AM

Check out my nfy extension. It provides an interface for notifications with a simple database implementation. I think it matches what you described.

It's build in a way that allow you to switch to websockets easily. Also, it's modeled like log router, so it's easy to add filtering of messages.

I've put up a demo where I use an external service to provide a websocket server. In the demo, notifications are only enabled for logged in users.
Don't be a dick.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users