# bs-drogon **Repository Path**: lauset/bs-drogon ## Basic Information - **Project Name**: bs-drogon - **Description**: Drogon WebSocket Application - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-28 - **Last Updated**: 2024-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Bs Drogon ## ws url ```shell ws://localhost:8090/bsws ``` param1: join room `room_id` param2: user flag `user_id` ```shell ws://localhost:8090/bsws?room_id=dev&user_id=u1 ``` ## redis ### Post ``` curl --location --request POST 'localhost:8090/redisctrl/key1' \ --header 'Content-Type: application/json' \ --data-raw '{ "value": "{\"k1\":1}" }' ``` ### Get ``` curl --location --request GET 'localhost:8090/r/key1' curl --location --request GET 'localhost:8090/redisctrl/key1' ``` ### api index ```shell localhost:8090 localhost:8090/test ``` ## files & dirs logs: 'projectDir/logs' html: 'projectDir/index.html' config: 'projectDir/config.json' ## build ```shell mkdir build cd build cmake .. make ``` [wstool](https://wstool.js.org/) [websocket online](https://www.hake.cc/tools/websocket/) ## libs **Drogon** [github](https://github.com/drogonframework/drogon) [docs-cn](https://www.bookstack.cn/read/drogon-zh/CHN-03-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B.md) **Hiredis** [github](https://github.com/redis/hiredis) ## others websocket test website [wstool](https://wstool.js.org/) [websocket online](https://www.hake.cc/tools/websocket/)