Comet server is written in C++, for storing data using MySQL.
Comet technology – allows sending arbitrary messages to client through server initiative
- Api for more then 9 languages. CometQL API allows you connect to server by mysql protocol.
- Good documentation in Russian and English languages
- Supports users authenticating on the server
- Allow sending a private message to users
- Allows you to send public messages to users via channels
- Allows subscription from JavaScript to changing other user’s status
- Allows subscription to updates of online users list in real-time
- Sending messages to channel from JS
- Allows get information when users were online
Report about load testing of 64,000 connections online
Documentation in Russian and English languages
- How to build and run EN or RU
- CometQL API documentation EN or RU (To connect to the comet server api from any server-side language is used CometQL)
- JavaScript API documentation EN or RU (To connect to the server from JavaScript API use file from api/CometServerApi.js )
- https://github.com/CppComet/php-chat-example ( One of the simplest way to create php websockets chat with CppComet )
- https://codepen.io/Levhav/pen/vJWWqW ( Creating a simple chat using CppComet )
- https://cppcomet.github.io/comet-server/demo/simple-chat/simple-chat.html
- https://github.com/CppComet/auth-example
For testing CppComet without install on vps you can use free cloud service with same api. In the all examples I will use demonstration access from comet-server.com for those who could not or were too lazy to deploy the server on their vps.
For demo access use credentials:
Login: 15
Password:lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8
Host: app.comet-server.ru
Example of connecting to cometQL api from console using mysql-client:
mysql -h app.comet-server.ru -u15 -plPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8 -DCometQL_v1 --skip-ssl
On this gif animation you see how send message to web chat from CppComet api.
We connect to CppComet by mysql protocol and send CometQL query.
For connect to demo server use this command:
mysql -h app.comet-server.ru -u15 -plPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8 -DCometQL_v1 --skip-ssl
For send message to demo chat use this query:
INSERT INTO pipes_messages (name, event, message)VALUES("web_MainPageChat", "", '{ "text":"My text","name":"My name"}' );
GNU AGPLv3