This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

<rst>EN::001-Introduction::9-Differences between Open source version and SaaS version</rst> <rst>Header: Versions of CppComet</rst> ====== Versions of CppComet ====== There are two versions of CppComet [[https://github.com/CppComet/comet-server|pensors version]] and [[https://comet-server.com|SaaS platform]]. They are fully compatible with Api, and the only difference is when specifying the parameters for the connection. ====== Connecting from the JavaScript API ====== When connecting from the JavaScript API to the SaaS version <code JavaScript> CometServer(). Start ({dev_id: 15, user_id: 1, user_key: "userHash"}) </code> When connecting from the JavaScript API to the open source version <code JavaScript> CometServer (). Start ({dev_id: 0, user_id: 1, user_key: "userHash", node: "example.com"}) </code> ====== Connecting from CometQL ====== When connecting from CometQL to SaaS version <code php> $ dev_id = "15"; // It is issued in a personal account on comet-server.com $ Dev_key = "lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8"; $ link = mysqli_connect ("app.comet-server.ru", $ dev_id, $ dev_key, "CometQL_v1"); </code> When connecting from CometQL to the open source version <code php> $ dev_id = "root"; // Set in the comet.ini file $ Dev_key = "lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8"; $ link = mysqli_connect ("example.com", $ dev_id, $ dev_key, "CometQL_v1"); </code> ====== Sharing Security ====== In the SaaS version, all user data is isolated from each other based on the dev_id parameter which is specified when connecting to the server. You are using your dev_id or how you will not affect the clients that specified when you connected another dev_id. If we talk about [[https://github.com/CppComet/comet-server|open source version]], then there is no division into dev_id, that is, it is calculated that there is only one user for one server instance. Therefore, you do not need to specify the dev_id parameter when connecting.

Discussion

Enter your comment. Wiki syntax is allowed:
Y P T​ P U