4

I am working in php framework codeigniter. Now I want to update records via websocket so that information update without page refresh. I can use ajax , jquery but I need to do this via websocket. So please anyone can help how to accomplish this functionality with websocket and how to use it in codeigniter.

Ayush
  • 41,754
  • 51
  • 164
  • 239
user2935236
  • 189
  • 2
  • 11

1 Answers1

2

CodeIgniter does not have support for websockets. However, you can use an external library like Ratchet within your CI application.

Ayush
  • 41,754
  • 51
  • 164
  • 239
  • Thanks for quick response but still I am unable to setup Rachet, I've installed composer but unable to install rachet so I am unable to use it. Please help me I am really stuck here... – user2935236 Oct 31 '13 at 06:08
  • Just get the files under `src/` from [Ratchet's Github Repo](https://github.com/cboden/Ratchet) – Ayush Oct 31 '13 at 06:10
  • I am still not getting it work. I've done everything but didn't find any file name autoload.php. Can you give any small code that I can run and check what I am doing wrong. – user2935236 Oct 31 '13 at 10:15
  • @xbone any luck with this ? Could you help ? – Sahan Jun 12 '15 at 22:38