Skip to content

CppComet/comet-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

32eaada · Feb 4, 2025
Oct 23, 2018
Feb 3, 2019
Aug 3, 2018
Jan 14, 2019
Jul 16, 2018
May 4, 2023
Aug 3, 2018
Jun 15, 2018
Jan 29, 2019
Feb 3, 2019
Jul 16, 2018
Jul 25, 2017
Jul 25, 2017
Aug 3, 2018
Jun 15, 2018
Mar 24, 2017
Jul 16, 2018
Jun 15, 2018
Oct 31, 2017
Oct 23, 2018
Aug 3, 2018
Aug 3, 2018
Aug 3, 2018
Jul 16, 2018
Feb 4, 2025
Jun 16, 2018
Jan 29, 2019
Jan 29, 2019

Repository files navigation

Gitter

CppComet

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

Project status

In the project has implemented all the functions that the author intended. The project is not dead, bug-reports and requests for new functionality are accepted as before.

Features

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

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 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

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

💡 Help

As the author of CppComet and an engineer with expertise in FullStack, DevOps, Kubernetes, and cloud architecture, I offer:

  • 🔧 Consultations.
  • 🚀 Guidance for building multi-tenant SaaS solutions.
  • 💡 Best practices for cluster management and CI/CD pipelines.

Let’s Connect!

My other project

🚀 U-store - cloud SaaS store template

🛡️ License

GNU AGPLv3