{"id":25950130,"url":"https://github.com/volatilflerovium/websocket_server","last_synced_at":"2025-03-04T12:52:55.756Z","repository":{"id":156259384,"uuid":"517010180","full_name":"volatilflerovium/Websocket_server","owner":"volatilflerovium","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-19T16:59:21.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T17:45:39.167Z","etag":null,"topics":["websocket","websocket-server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/volatilflerovium.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":"2022-07-23T09:11:09.000Z","updated_at":"2025-02-19T16:59:25.000Z","dependencies_parsed_at":"2023-05-04T14:01:32.093Z","dependency_job_id":null,"html_url":"https://github.com/volatilflerovium/Websocket_server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volatilflerovium%2FWebsocket_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volatilflerovium%2FWebsocket_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volatilflerovium%2FWebsocket_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volatilflerovium%2FWebsocket_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volatilflerovium","download_url":"https://codeload.github.com/volatilflerovium/Websocket_server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241852145,"owners_count":20030969,"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":["websocket","websocket-server"],"created_at":"2025-03-04T12:52:55.102Z","updated_at":"2025-03-04T12:52:55.732Z","avatar_url":"https://github.com/volatilflerovium.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Websocket_server\n\n## How to build it\n\n```\nmkdir build\ncd build\ncmake .. [-DBUILD_SHARED_LIBS=ON]\n```\n\n## Quick start\n\nExample:\n\nOn the server side:\n```\n\tWebsocketServer server(some_ip, some_port);\n\n\tMyServer.subscribeCommand(\"Cmd_1\", [](const std::string\u0026 params){\n\t\t\t// parse the parameter string\n\t\t\t// do something with those values\n\t\t\t// return the result to the client: \n\t\t\treturn theResult;\n\t});\n```\n\nIn your Javascript:\n```\n\tdocument.getElementById('ButtonCmd').addEventListener('click', function(){\n\t\tvar someData=getData();\n\t\tMyWebsocket.sendMsg('Cmd_1:'+someData);\n\t});\n```\n\n## COPYRIGHT\nWebsocketServer is released into the public domain by the copyright holder.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolatilflerovium%2Fwebsocket_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolatilflerovium%2Fwebsocket_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolatilflerovium%2Fwebsocket_server/lists"}