If you have to ask server for notification, that's AJAX

With socket.io, that uses websocket, you can do that by idea of chat 
example:

http://psitsmike.com/2011/09/node-js-and-socket-io-chat-tutorial/
http://net.tutsplus.com/tutorials/javascript-ajax/real-time-chat-with-nodejs-socket-io-and-expressjs/

Client need only to listen data pushed from server, that's same things with 
your notification

Hope that helps you

On Friday, August 2, 2013 12:59:18 PM UTC+2, Krunal Goswami wrote:
>
> Yes it is good, did some demo on it. But i want server to push user 
> specific notifications, when some event (like/comment) occurs on post. 
> Right now in my demo at some time interval i have to ask server for if 
> notification exists for me or not.
>  On Aug 2, 2013 4:24 PM, "bodo" <[email protected] <javascript:>> wrote:
>
>> I think socket.io is good solution for you
>>
>> On Friday, August 2, 2013 11:16:39 AM UTC+2, Krunal Goswami wrote:
>>>
>>> Hello Everyone,
>>>
>>> I am going to develop a web application, which has a tiny 
>>> socialnetworking feature where each user can post/share quotes and it has 
>>> facility to like and comment(similar to facebook).
>>> now i want to notify owner of that post about the like and comments on 
>>> his post. i want to provide realtime notification with nodejs. is there any 
>>> way to do it?
>>>
>>> Please provide me good solution.
>>>
>>>
>>>
>>> Thanks!
>>> Krunal
>>>
>>  -- 
>> -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to