You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comet technology – allows sending arbitrary messages to client through server initiative
4
-
5
-
## How it works
6
-
7
-
* Browser opens page of your site.
8
-
* After loading this page JavaScript Api establishes a persistent connection to CppComet using websockets.
9
-
* While page is open, your server can send text message to client. It appeals via [CometQL API](http://comet-server.org/doku.php/en:comet:cometql) to CppComet and transfer message for browser.
10
-
* CppComet uses open connection with browser for delivers message in to JavaScript api in browser.
11
-
*[JavaScript API](http://comet-server.org/doku.php/en:comet:javascript_api) delivers this message to your callback.
3
+
Comet server is written in C++, for storing data using MySQL.
12
4
13
5
# Features
14
6
7
+
Comet technology – allows sending arbitrary messages to client through server initiative
8
+
15
9
* Api for more then 9 languages. [CometQL API](http://comet-server.org/doku.php/en:comet:cometql) allows you connect to server by mysql protocol.
16
10
* Good documentation in [Russian](http://comet-server.org/doku.php/ru) and [English](http://comet-server.org/doku.php/en) languages
17
-
* Allow sending a private message to users
18
-
* Supports users authenticating on the server
19
-
* Allows you to send public messages to users via channels
11
+
*[Supports users authenticating on the server](https://comet-server.com/wiki/doku.php/en:comet:authentication#users_authorization_on_the_cometserver)
12
+
*[Allow sending a private message to users](https://comet-server.com/wiki/doku.php/en:comet:cometql#table_users_messages)
13
+
*[Allows you to send public messages to users via channels](https://comet-server.com/wiki/doku.php/en:comet:cometql#table_pipes_messages)
14
+
*[Allows subscription from JavaScript to changing other user’s status](https://comet-server.com/wiki/doku.php/en:comet:javascript_api#subscribe_to_receive_messages_from_channel)
15
+
*[Allows subscription to updates of online users list in real-time](https://comet-server.com/wiki/doku.php/en:comet:javascript_api#list_of_online_users_channels_track)
16
+
*[Sending messages to channel from JS](https://comet-server.com/wiki/doku.php/en:comet:javascript_api#sending_messages_to_channel_from_js_pipes_web)
17
+
*[Allows get information when users were online](https://comet-server.com/wiki/doku.php/en:comet:cometql#table_users_time)
18
+
19
+
# How it fast
20
+
21
+
[Report about load testing](https://comet-server.com/wiki/doku.php/en:comet:load-testing-result#report_about_testing_of_64000_connections_online) of 64,000 connections online
22
+
23
+
# How it works
24
+
25
+
* Introduction to comet technology [EN](https://comet-server.com/wiki/doku.php/en:comet:introduction-to-comet#introduction) and [RU](https://comet-server.com/wiki/doku.php/comet:introduction-to-comet#introduction)
26
+
27
+
# Documentation and examples
28
+
29
+
Documentation in [Russian](http://comet-server.org/doku.php/ru) and [English](http://comet-server.org/doku.php/en) languages
20
30
31
+
* How to build and run [EN](http://comet-server.org/doku.php/en:comet:building-from-source) or [RU](http://comet-server.org/doku.php/comet:building-from-source)
32
+
* CometQL API documentation [EN](http://comet-server.org/doku.php/en:comet:cometql) or [RU](http://comet-server.org/doku.php/comet:cometql) (To connect to the comet server api from any server-side language is used CometQL)
33
+
* JavaScript API documentation [EN](http://comet-server.org/doku.php/en:comet:javascript_api) or [RU](http://comet-server.org/doku.php/comet:javascript_api) (To connect to the server from JavaScript API use file from [api/CometServerApi.js](https://github.com/CppComet/comet-server/tree/master/api) )
For testing CppComet without install on vps you can use [free cloud service with same api](https://comet-server.com/).
45
+
In the all examples I will use demonstration access from [comet-server.com](http://comet-server.com) for those who could not or were too lazy to deploy the server on their vps.
CppComet has cloud saas alternative that can be used for testing and demo access.
37
-
In the following examples I will use demonstration access from [comet-server.com](http://comet-server.com) for those who could not or were too lazy to deploy the server on their vps.
38
-
39
54
Example of connecting to [cometQL api](http://comet-server.org/doku.php/en:comet:cometql) from console using mysql-client:
40
55
```
41
56
mysql -h app.comet-server.ru -u15 -plPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8 -DCometQL_v1 --skip-ssl
@@ -58,28 +73,6 @@ For send message to demo chat use this query:
Comet server is written in C++, for storing data using MySQL.
64
-
65
-
[Documentation and examples](http://comet-server.org/)
66
-
67
-
### Building from source and launch
68
-
69
-
How to build and run [EN](http://comet-server.org/doku.php/en:comet:building-from-source) or [RU](http://comet-server.org/doku.php/comet:building-from-source)
70
-
71
-
### CometQL API:
72
-
73
-
CometQL API documentation [EN](http://comet-server.org/doku.php/en:comet:cometql) or [RU](http://comet-server.org/doku.php/comet:cometql)
74
-
75
-
- To connect to the comet server api from any server-side language is used CometQL [EN](http://comet-server.org/doku.php/en:comet:cometql) or [RU](http://comet-server.org/doku.php/comet:cometql)
76
-
77
-
### JavaScript API:
78
-
79
-
JavaScript API documentation [EN](http://comet-server.org/doku.php/en:comet:javascript_api) or [RU](http://comet-server.org/doku.php/comet:javascript_api)
80
-
81
-
- To connect to the server from JavaScript API use file from api/CometServerApi.js
0 commit comments