This object is a jQuery Chat plugin which can use HTML5 Websockets or HTML5 SSE (Server Sent Events) with AJAX Long Polling as fallback in order to fetch updated information from server instead of using old method of regular AJAX calls.
It can send and receive user messages to a server based on Websocket connections or server sent events connections or regular HTTP requests using AJAX.
It can invoke callback functions when a connection with the chat server is opened, when messages are exchanged or when an error happens.
This plugin can also be used in chat applications or wherever we have to call server at regular interval or stay connected with server to get latest information from server as its available on server like updating feed posts or any other contents, or get notifications, etc.. |