AddChat Codeigniter Pro comes with a custom Internal notification system & Pusher integration for chatting in realtime.
Internal notification is a custom real-time notification system built using VueJs, which does not require any additional server setup. It works smoothly behind the scenes.
Internal notification system sends regular Asynchronous HTTP/S Requests
to the server for getting the latest messages on the fly. For the geeks who wanna know more, it only runs a single SELECT
database query in a single Table
to fetch the latest messages.
{info} The total no. of
records
fetched from singleSELECT
query are equal to the total no. of users chatting simultaneously.
{primary} Admin can switch between Pusher & Internal notification system with just one click.
Internal notification system fetches the following things in realtime (without page refresh)
{primary} Internal notification system saves Pusher monthly subscription fees.
Pusher notification system fetches the following things in realtime.
By default, the Internal notification system is enabled
. To switch to Pusher
notifications, firstly, you (as website Admin) need to Signup on Pusher and create an app
and get the Pusher API credentials. Once you have the Pusher credentials -
application/config/addchat.php
& scroll down to Notification Type section.notification_type
to pusher
{success} Now, the AddChat widget will fetch real-time notifications using Pusher