Real Time Notification System in Socket.io

Hello Devs. I am a beginner in CakePHP . Recently I am learning how to implement real-time notification system. I used Pusher but to fulfill my company requirement, I have to choose any of the paid Pusher package which company won’t allow. Then I hear about socket.io .I need some help on socket.io and CakePHP .
Is there any tutorial (blog/video) about how to integrate Socket.io in CakePHP and implement real time notification system? Thanks in advance.

The sound is a bit messy but the knowledge is there

1 Like

Hello. I did the same. I came up with redis (as phpsession storage), in combination of nginx (as proxy for ssl/wss termination), crossbar.io as websocket router, autobahn.js as ws-js-client and Thruway as Libs. It is not an cake plugin. I wrote my own lib therefore for usage.

I read a lot about this topic. It is a big setup (i know), but necessary. There are so many pitfalls, with this setup, they are all handled.

Greetings!

1 Like

I forgot to say, that this setup is for bidirectional communitcation server <-> client. So not only for realtime notifications. Realtime communication.

Otherwise, you could do it like facebook with ajax-longpolling. This might be the shorter way…

1 Like

Thank you. It helps me to know about socket implementation with cake. :slight_smile:

You may implement this one to cakephp https://firebase.google.com/docs/cloud-messaging/.