Hello, you can use the pusher service (pusher.com). I use said service to extend Hype GlobalBehavior but this can also be use without the custom behavior extension.
Look at the pusher API and PHP examples. My dive into the service in conjunction with Hype GlobalBehavior can be found here (and used or looked at as reference)