CodeIgniter Forums
Realtime (WebSockets) library with Pusher - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Realtime (WebSockets) library with Pusher (/showthread.php?tid=61325)



Realtime (WebSockets) library with Pusher - silentium - 04-08-2015

Creating a real time web application using PHP is unfortunately still very limited and it can be hard to find WebSocket services that support it.

I'm currently working on a project that is using CodeIgniter as the backend and need to push realtime updates to the client. I ended up using Pusher, a hosted service for WebSockets. They have a PHP SDK that I have now created a CI library wrapper for, so that you can use regular CodeIgniter syntax in your code, for example

PHP Code:
$this->ci_pusher->trigger(); 

You can find my library on Github, https://github.com/darkwhispering/pusher-for-codeigniter. I hope some of you will find it useful.

Feedback is very welcomed.

I will post the project when live as a reference what can be done with the library and WebSockets.


RE: Realtime (WebSockets) library with Pusher - alkarim - 04-22-2015

Nice work man...


RE: Realtime (WebSockets) library with Pusher - silentium - 06-02-2015

The project I created the library for is now live and can be found here http://hamptonspicnicproperties.com/

It uses realtime events to sync a phone call with an interactive video. Only works with US numbers.