Skip to content
CppComet - easy to use and fast in work.
JavaScript C++ C Yacc CMake Shell Other
Branch: master
Clone or download

Latest commit

Latest commit 994bf15 Feb 3, 2019


Type Name Latest commit message Commit time
Failed to load latest commit information.
api 4.04 new db schema Oct 23, 2018
coverage 4.09 bug fix Feb 3, 2019
dependencies v 4.02 Aug 3, 2018
docs 4.08 fix tests Jan 14, 2019
roles tests Jul 16, 2018
src 4.09 bug fix Feb 3, 2019
tests/tsung-tests v 4.02 Aug 3, 2018
.gitignore ax Jun 15, 2018
.polemarch.yaml add update playbook Jan 29, 2019 4.09 bug fix Feb 3, 2019
CMakeLists.txt tests Jul 16, 2018 Create Jul 25, 2017 Create Jul 25, 2017
Dockerfile v 4.02 Aug 3, 2018
LICENSE tests Jun 15, 2018 tests Jul 16, 2018
comet.ini tests Jun 15, 2018
comet.service fix start script and statistics Oct 31, 2017
db.sql 4.04 new db schema Oct 23, 2018
install-mysql.yml v 4.02 Aug 3, 2018
make-highload-host.yml v 4.02 Aug 3, 2018
postinstall.cmake tests Jul 16, 2018
readme.MD ax Jun 15, 2018
run-tests.yml tests test Jun 16, 2018
upload-to-docker-hub.yml add update playbook Jan 29, 2019




Comet server is written in C++, for storing data using MySQL.


Comet technology – allows sending arbitrary messages to client through server initiative

How it fast

Report about load testing of 64,000 connections online

How it works

  • Introduction to comet technology EN and RU

Documentation and examples

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 )


Demo access to server API

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 for those who could not or were too lazy to deploy the server on their vps.

For demo access use credentials:

Login: 15

Example of connecting to cometQL api from console using mysql-client:

mysql -h -u15 -plPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8 -DCometQL_v1 --skip-ssl

Simple chat demo

Simple chat demo page Simple chat demo gif

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 -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"}' );



You can’t perform that action at this time.