Yii Framework Forum: [Extension] Vnotifier - Yii Framework Forum

Jump to content

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

[Extension] Vnotifier Realtime notifications for Yii Rate Topic: -----

#1 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 13 January 2013 - 09:45 AM

Hi,

Some weeks ago I wrote about one of my current project called vnotifier (http://www.yiiframew...post&pid=186204).

Quote

I'm working on a realtime notification system for Yii. The base concept is that we are sending a message from Yii (using predis, and redis' publish feature), while we are running a node.js app where socket.io clients can subscribe to redis messages.


Now, you can check it at the extension page: http://www.yiiframew...sion/vnotifier/

If you have any comment, question or suggestion, please post it here, or at github (https://github.com/v...xt/yii-vNotifer).
Sorry for my english...
1

#2 User is offline   bonnie 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 08-February 11

Posted 14 January 2013 - 08:05 PM

View Postvoidcontext, on 13 January 2013 - 09:45 AM, said:

Hi,

Some weeks ago I wrote about one of my current project called vnotifier (http://www.yiiframew...post&pid=186204).



Now, you can check it at the extension page: http://www.yiiframew...sion/vnotifier/

If you have any comment, question or suggestion, please post it here, or at github (https://github.com/v...xt/yii-vNotifer).


How do I start start redis
start notification-server.js. I mean are they included or I need to install them separately. Am getting this error No connection could be made because the target machine actively refused it
0

#3 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 15 January 2013 - 01:14 AM

View Postbonnie, on 14 January 2013 - 08:05 PM, said:

How do I start start redis
start notification-server.js. I mean are they included or I need to install them separately. Am getting this error No connection could be made because the target machine actively refused it


Redis is a key-value store with publish/subscribe feature. You can download it from here. Nodejs can be founded here. They are separate softwares. If you're using a linux distribution maybe you can find these 2 software in your package manager. After intalling and configuring, you have to start redis:

redis-server


After installing nodejs, you will be able to run nodejs applications on server side. On linux nodejs comes with package manager called npm. You have to go to the bin directory and type

npm install


this will read the package.json file and will install the dependencies. If you are on windows I think you should install the dependencies manually as the npm on windows is not stable yet, but I'm not 100% sure about it as I've never used nodejs on win.

When it's done you can run

node notification-server.js


I hope this can help! If you have more question then feel free to ask.
Sorry for my english...
0

#4 User is offline   sebako 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 54
  • Joined: 15-February 12

Posted 10 April 2013 - 08:44 PM

Hey there,

I am using your extension and so far I got everything setup. The redis server is seeing Messages with PUBLISH "broadcast" "test"
however the message test does not get appended to the list the notification Widget is rendering. Firebug says everything seems to be fine. Do you have any idea where I could start to plug this issue?

Thanks in advance.

Best,

Seb

Oh and ... notification server is running on another server but that shouldn't be a problem or?
0

#5 User is offline   cico 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 22-December 12

Posted 09 November 2013 - 04:06 PM

Hi, i'm try to use your demo but when i go to send action page i have this error after 1 minute:

Uknown Error: 0

/home/cico/Scrivania/getincarico/notyfer/www/protected/extensions/yii-notifier/NotifiedWebUser.php(26)

14     
15     /**
16      * Unique Hash
17      * @var string
18      */
19     private $_token;
20 
21     /**
22      * Returns the notifier application component
23      * @return VNotifier
24      */
25     private function getNotifier() {
26         return Yii::app()->{$this->notifierComponent};
27     }


1)the redis server is ok (have pong) and when i launch the notification-server.js it return me the new connection
2)i have install node_module with npm install on package.json folder
3)the console
$ node notification-server.js 
   info  - socket.io started

is started

4)the config.js file is setted:
var config = {
	port : 4000,
	redis : {
		port : 6379,
		host : null
	}
};

module.exports = config;


5)i have also change in config/main.php the
'getUserTokenUrl' => '/notyfer/www/site/usertoken',


please do you have a solution?

thank you
0

#6 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 03 December 2013 - 02:03 PM

Hi,

Sorry for the delay, I'm a little busy nowadays.

Have you figured out what was the problem or still exists?

This error used to happen when the extension cannot connect to the nodejs server. Yes, I know this isn't clear, I will work on it.

Which version did you use? I will update the github repo soon with some fixes...

Have a nice day :)

View Postcico, on 09 November 2013 - 04:06 PM, said:

Hi, i'm try to use your demo but when i go to send action page i have this error after 1 minute:

Uknown Error: 0

/home/cico/Scrivania/getincarico/notyfer/www/protected/extensions/yii-notifier/NotifiedWebUser.php(26)

14     
15     /**
16      * Unique Hash
17      * @var string
18      */
19     private $_token;
20 
21     /**
22      * Returns the notifier application component
23      * @return VNotifier
24      */
25     private function getNotifier() {
26         return Yii::app()->{$this->notifierComponent};
27     }


1)the redis server is ok (have pong) and when i launch the notification-server.js it return me the new connection
2)i have install node_module with npm install on package.json folder
3)the console
$ node notification-server.js 
   info  - socket.io started

is started

4)the config.js file is setted:
var config = {
	port : 4000,
	redis : {
		port : 6379,
		host : null
	}
};

module.exports = config;


5)i have also change in config/main.php the
'getUserTokenUrl' => '/notyfer/www/site/usertoken',


please do you have a solution?

thank you

Sorry for my english...
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