Welcome Guest, Not a member yet? Register   Sign In
WebSockets in PHP/CI/jQuery
#1

This question isn't completely related to CI framework, but I hope to use CI for it, and I believe theres a lot of bright individuals here, so ill ask!

I have plenty of instances on my CI application where I use AJAX to monitor for any changes on something, and update it when changes are found. While this gets the job done, obviously theres plenty of downsides of throwing an AJAX request in some type of loop.

I was looking into the idea of using WebSockets instead, using PHP and jQuery. I had a question about the server side...

The "Server" that the WebSocket connection connects to, is it possible to have this in a CI controller, served through Apache/NginX? Or does it have to be a stand alone script running in the background.

If its the latter, them I'm just curious if anyone here uses WebSockets, and how they get it done. In all the examples, you have to launch the PHP script as the server via the command line, so if this is in production, how do you do that? Does it have its own init script to start it as its own process? How does it get launched? Id prefer if the jQuery just made the connection right to the VirtualHost instance, but im not positive thats how its done.

Thanks
Reply


Messages In This Thread
WebSockets in PHP/CI/jQuery - by jLinux - 10-26-2015, 10:34 AM
RE: WebSockets in PHP/CI/jQuery - by mlantz - 10-26-2015, 11:24 AM
RE: WebSockets in PHP/CI/jQuery - by jLinux - 10-26-2015, 12:40 PM
RE: WebSockets in PHP/CI/jQuery - by jLinux - 10-31-2015, 08:19 PM
RE: WebSockets in PHP/CI/jQuery - by leonhou - 03-29-2016, 08:20 PM
RE: WebSockets in PHP/CI/jQuery - by arma7x - 03-29-2016, 11:19 PM
RE: WebSockets in PHP/CI/jQuery - by kishor10d - 08-13-2016, 12:55 PM
RE: WebSockets in PHP/CI/jQuery - by albertleao - 03-30-2016, 12:17 PM
RE: WebSockets in PHP/CI/jQuery - by Ivo Miranda - 08-15-2016, 11:52 AM
RE: WebSockets in PHP/CI/jQuery - by arma7x - 08-15-2016, 12:41 PM
RE: WebSockets in PHP/CI/jQuery - by Ivo Miranda - 08-15-2016, 05:30 PM
RE: WebSockets in PHP/CI/jQuery - by albertleao - 08-15-2016, 05:57 PM
RE: WebSockets in PHP/CI/jQuery - by spjonez - 08-16-2016, 07:11 AM
RE: WebSockets in PHP/CI/jQuery - by takielias - 06-10-2021, 08:25 AM
RE: WebSockets in PHP/CI/jQuery - by badger - 06-11-2021, 05:05 AM
RE: WebSockets in PHP/CI/jQuery - by paliz - 06-11-2021, 09:52 AM
RE: WebSockets in PHP/CI/jQuery - by Jastro - 07-13-2022, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB