{"id":18152018,"url":"https://github.com/yoruakio/websocket-server","last_synced_at":"2026-01-23T12:19:43.302Z","repository":{"id":259179811,"uuid":"876444033","full_name":"YoruAkio/WebSocket-Server","owner":"YoruAkio","description":"📡 WebSocket-Server: Simple websocket server build using websocketpp and asio libraries.","archived":false,"fork":false,"pushed_at":"2024-10-23T03:29:15.000Z","size":1341,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T14:22:01.863Z","etag":null,"topics":["cmake","cpp","json","server","websocket","websockets","websockets-client","websockets-server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YoruAkio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-22T01:26:20.000Z","updated_at":"2024-10-23T03:52:38.000Z","dependencies_parsed_at":"2024-10-23T09:24:23.233Z","dependency_job_id":"e4fd708c-9ca4-480c-bf7f-f0d079359ef1","html_url":"https://github.com/YoruAkio/WebSocket-Server","commit_stats":null,"previous_names":["yoruakio/websocket-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruAkio%2FWebSocket-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruAkio%2FWebSocket-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruAkio%2FWebSocket-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruAkio%2FWebSocket-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YoruAkio","download_url":"https://codeload.github.com/YoruAkio/WebSocket-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666921,"owners_count":21624396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","cpp","json","server","websocket","websockets","websockets-client","websockets-server"],"created_at":"2024-11-02T02:05:20.370Z","updated_at":"2026-01-23T12:19:43.222Z","avatar_url":"https://github.com/YoruAkio.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebSocket-Demo\n\nSimple websocket server build using websocket and asio libraries.\n\n## Requirements\n\n- CMake 3.25 or higher\n- Git\n- Compiler ( GCC, Clang, MSVC )\n- a bit cells of your brain lmao\n\n## Building\n\n```bash\ngit clone https://github.com/yoruakio/WebSocket-Server.git\ncd WebSocket-Server \u0026\u0026 mkdir build \u0026\u0026 cd build\ncmake ..\ncmake --build . \u0026\u0026 ./WebSocketServer\n```\n\n## Information\n\nThis is client code for the WebSocket-Server. It is a simple websocket client that can be used to demonstrate how to use websockets in C++.\n\n```cpp\ntypedef websocketpp::client\u003cwebsocketpp::config::asio_client\u003e client;\n\nstd::string uri = \"ws://localhost:9002\";\nstd::string auth_token = \"your_secret_token\"; // Replace with your actual token\n\nclient c;\nc.init_asio();\n\nc.set_open_handler([\u0026c](websocketpp::connection_hdl hdl) {\n    std::cout \u003c\u003c \"Connection opened\" \u003c\u003c std::endl;\n    c.send(hdl, \"Hello, Server!\", websocketpp::frame::opcode::text);\n});\nc.set_message_handler([](websocketpp::connection_hdl, client::message_ptr msg) {\n    std::cout \u003c\u003c \"Received message: \" \u003c\u003c msg-\u003eget_payload() \u003c\u003c std::endl;\n});\n\nwebsocketpp::lib::error_code ec;\nclient::connection_ptr con = c.get_connection(uri, ec);\n\nif (ec) {\n    std::cout \u003c\u003c \"Could not create connection because: \" \u003c\u003c ec.message() \u003c\u003c std::endl;\n    return 1;\n}\n\ncon-\u003eappend_header(\"Authorization\", auth_token);\n\nc.connect(con);\nc.run();\n```\n\n## Contact\n\nIf you have any questions or suggestions, feel free to contact me at:\n\n- Discord: [@yoruakio](https://discord.com/users/919841186246692886)\n- Telegram: [@yoruakio](https://t.me/yoruakio) or [HTF](https://t.me/htf_public)\n\n## LICENSE\n\nWebSocket-Server is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoruakio%2Fwebsocket-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoruakio%2Fwebsocket-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoruakio%2Fwebsocket-server/lists"}