All Projects → kishor10d → Codeigniter Ratchet Websocket

kishor10d / Codeigniter Ratchet Websocket

This library contains the demo of commenting/posting realtime using CodeIgniter+AngularJS+Ratchet PHP Websocket

Projects that are alternatives of or similar to Codeigniter Ratchet Websocket

intrinio-realtime-python-sdk
Intrinio Python SDK for Real-Time Stock Prices
Stars: ✭ 79 (-5.95%)
Mutual labels:  websockets, realtime
Pushpin
Proxy server for adding push to your API
Stars: ✭ 3,050 (+3530.95%)
Mutual labels:  websockets, realtime
live-cryptocurrency-streaming-flutter
A Flutter app with live cryptocurrency updates, powered by Ably
Stars: ✭ 26 (-69.05%)
Mutual labels:  websockets, realtime
docs
The official soketi documentation. 📡
Stars: ✭ 55 (-34.52%)
Mutual labels:  websockets, realtime
Vue Socket.io Extended
✌️⚡️ Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)
Stars: ✭ 506 (+502.38%)
Mutual labels:  websockets, realtime
soketi
Just another simple, fast, and resilient open-source WebSockets server. 📣
Stars: ✭ 2,202 (+2521.43%)
Mutual labels:  websockets, realtime
bong-bong
Open public chat service built for the web.
Stars: ✭ 17 (-79.76%)
Mutual labels:  websockets, realtime
Node Jet
Realtime Message Bus for the Web. Javascript Implementation
Stars: ✭ 162 (+92.86%)
Mutual labels:  websockets, realtime
Wsify
Just a tiny, simple and real-time self-hosted pub/sub messaging service
Stars: ✭ 452 (+438.1%)
Mutual labels:  websockets, realtime
Sapphiredb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core
Stars: ✭ 326 (+288.1%)
Mutual labels:  websockets, realtime
channeled-dashboard
Repository for the talk `Building real time applications with Django and Channels`
Stars: ✭ 20 (-76.19%)
Mutual labels:  websockets, realtime
Stl.fusion
Get real-time UI updates in Blazor apps and 10-1000x faster API responses with a novel approach to distributed reactive computing. Fusion brings computed observables and automatic dependency tracking from Knockout.js/MobX/Vue to the next level by enabling a single dependency graph span multiple servers and clients, including Blazor apps running in browser.
Stars: ✭ 858 (+921.43%)
Mutual labels:  websockets, realtime
Simple Realtime Message Socketio Nodejs Ci
🔌 Simple realtime push message using Socket.IO (Node.JS) integrated with PHP (CodeIgniter) and database MySQL
Stars: ✭ 85 (+1.19%)
Mutual labels:  codeigniter, realtime
Socketcluster Server
Minimal server module for SocketCluster
Stars: ✭ 70 (-16.67%)
Mutual labels:  websockets, realtime
Socketcluster Client
JavaScript client for SocketCluster
Stars: ✭ 250 (+197.62%)
Mutual labels:  websockets, realtime
django-rest-live
Subscribe to updates from Django REST Framework over Websockets.
Stars: ✭ 48 (-42.86%)
Mutual labels:  websockets, realtime
Next Todos
200 lines realtime todos app powered by next.js, preact, jet, redux and now
Stars: ✭ 117 (+39.29%)
Mutual labels:  websockets, realtime
Codenames
Stars: ✭ 159 (+89.29%)
Mutual labels:  websockets, realtime
Angelo
Sinatra-like DSL for Reel that supports WebSockets and SSE
Stars: ✭ 303 (+260.71%)
Mutual labels:  websockets, realtime
Supabase
The open source Firebase alternative. Follow to stay updated about our public Beta.
Stars: ✭ 25,142 (+29830.95%)
Mutual labels:  websockets, realtime

CodeIgniter-Ratchet-Websocket

NOTICE : This project is NOT production ready.

This library contains the demo of commenting/posting realtime using CodeIgniter-Ratchet-Websocket with AngularJS as client-side javascript framwork.

There is no rocket science I have done to achieve this.

As you know the CodeIgniter Directory Structure

There is a folder called CI- -application -third_party -Realtime (I put here Ratchet PHP Websocket Library)

I put my code here and just call that code using Javascript websocket.

How to use :

  1. Download the code.

  2. You got a database script with name "realtime.sql", just import that script into your database named "realtime" (You may use your name but you have to change database name in CodeIgniter's database.php also.

  3. Put the downloaded code in your web root folder (www or htdocs... whatever it may be).

  4. Goto application/config/constants.php

Change the constant BROADCAST_URL and set it as IP of your own computer.

  1. Open Command Prompt Move towards your webroot folder. We are having our websocket code at following path in our project.
application/third_party/Realtime/bin/server.php

We have to run that server.php file from command prompt.

Just move to that folder by using "cd" command.

c:/>cd xampp\htdocs\ci-ratchet\application\third_party\Realtime\bin

Press enter.. Now you are in that directory specifically, just run following command.

c:\xampp\htdocs\ci-ratchet\application\third_party\Realtime\bin>php server.php

If its error free and noting is populated, then its supposed that you got the success to start the websocket server.

  1. Now run your ci-ratchet project in browser by hitting url.
http://localhost/ci-ratchet/

Once AngularJS initialize, you can see the Textbox, just start typing and press enter.... VOLLAAAAAAAAA

Its working

  1. Check it in another browser for realtime experience.

  2. It has some permission issues on shared hosting, so it will gives throw some error. Check issue @ https://github.com/ratchetphp/Ratchet/issues/409

It will work for sure if you have same user for your VPS and shared hosting space.

What I used?

  1. CodeIgniter 3.x PHP Framework (https://www.codeigniter.com/)

  2. Ratchet - Websocket for PHP (http://socketo.me/) by Chris Boden(@boden_c)

  3. AngularJS - A superheroic Javascript MVW Framework by Google

Same functionality using jQuery? => Yes

I have added 3 new files in the same project for better understanding in.

application/controllers/jquery.php

application/views/jquery.php

assets/app/Connection2.js

URL : http://localhost/ci-ratchet/index.php/jquery

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].