Pushing messages to clients can be pretty complex, and a short question like this contains not enough information to give a sufficient answer. What javascript code do you use? To who do you want to send messages? What is the frequency? Expected number of users and messages?